Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't defer the disableFormElements call #454

Open
antpaw opened this issue Jan 31, 2016 · 0 comments
Open

Don't defer the disableFormElements call #454

antpaw opened this issue Jan 31, 2016 · 0 comments

Comments

@antpaw
Copy link

antpaw commented Jan 31, 2016

https://github.com/rails/jquery-ujs/blob/master/src/rails.js#L482

This line doesn't work for me if the user is offline and I save the data to local storage, it all happens in the same callstack. To defer this call means assuming a xhr call, which is not the case all the time. Maybe rails.disableSelector or e.currentTarget, can be used to retrieve value of a disabled input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant