Answer the question
In order to leave comments, you need to log in
How to make ajaxform work without email and textarea in modx revolution?
The standard ajax-form works and sends letters to the mail even with the addition of other fields. But if you remove one of the fields that it originally has and cancel its validation in the call, then the form will not be sent. How to make ajax-form submit without margins by default?
Answer the question
In order to leave comments, you need to log in
Your scroll
method is called both from the outside and from the inside. This means that scroll can be called multiple times with and and you will have multiple timeouts. The scrollId will contain the last ID. direction: 'horizontal'
scroll: undefined
Read about scopes and this in js.
Your this.scrollId does not go there.
Better assign the id to a variable and remove the timeout through it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question