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

Event rebinding issue #14

Open
jsmpereira opened this issue Dec 6, 2013 · 0 comments
Open

Event rebinding issue #14

jsmpereira opened this issue Dec 6, 2013 · 0 comments

Comments

@jsmpereira
Copy link

It seems that the current script does not handle event rebinding correctly.

Replacing live with on is not a 1:1 relation, it seems. Rationale: http://blog.revathskumar.com/2013/10/jquery-on-avoid-losing-event-binding-for-ajaxed-contents.html

To reproduce:

Use a link to load a remote partial, containing a remote form.
The form, with remote: true, will fail to behave correctly and will not make
an asynchronous request.

It might be overkill for padrino (or not), but a workaround is using https://github.com/rails/jquery-ujs which actually is backend independent and can work as a drop-in replacement.

Using 0.11.4.

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