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

the enter key would trigger the form action #6

Open
liyuankui opened this issue Jun 9, 2014 · 3 comments
Open

the enter key would trigger the form action #6

liyuankui opened this issue Jun 9, 2014 · 3 comments

Comments

@liyuankui
Copy link

http://jsfiddle.net/liyuankui/AkYj2/
Not sure if it is a bug or a feature.
This problem arose when I update ractivejs to the edge version.
It wasn't there for previous version of ractivejs.

@martypdx
Copy link
Contributor

martypdx commented Jun 9, 2014

Probably needs to be fixed back so plugin events take precedence over DOM events. For quick work around, re-alias it:

Ractive.events.enterkp = Ractive.events.enter;

@liyuankui
Copy link
Author

@martypdx Thanks for your prompt response!
http://jsfiddle.net/liyuankui/AkYj2/3/
However, the quick workaround doesn't seem to prevent the POST action.

@martypdx
Copy link
Contributor

martypdx commented Jun 9, 2014

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

2 participants