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

prevent_default shouldn't stopPropagation, or at least offer a way to cancel it #125

Open
iMoses opened this issue Sep 25, 2016 · 0 comments

Comments

@iMoses
Copy link

iMoses commented Sep 25, 2016

I have a use case in which I'm using React and Keypress together.
I want Keypress to catch all special keys, such as backspace and tab, prevent their default and do something else instead.

My problem is that React events suddenly stop working because they are all attached to the document and Keypress uses stopPropagation inside '_prevent_default'.

I think it would be great if this functionality was separated or at least to offer an option to disable it.

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

No branches or pull requests

2 participants