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

onChange not firing with virtual keyboard #2244

Closed
StevePotter opened this issue Sep 25, 2014 · 7 comments
Closed

onChange not firing with virtual keyboard #2244

StevePotter opened this issue Sep 25, 2014 · 7 comments

Comments

@StevePotter
Copy link

Hey all, writing a kiosk type app in Linux. It's for a touch device and I needed a virtual keyboard. I found a great Chrome extension at https://chrome.google.com/webstore/detail/virtual-keyboard/pflmllfnnabikmfkkaddkoolinlfninn?hl=en.

The extension works fine but React's onChange doesn't recognize it. The extension is JS-based and it dispatches keyDown, keyUp, keyPress, and change events itself. And naturally it updates the element's value. Why wouldn't this work?

Thanks!

@sophiebits
Copy link
Collaborator

In Chrome, React expects to hear the input event. Maybe we could listen for the others as well, though I don't think it should really be necessary.

@StevePotter
Copy link
Author

Thanks for the reply. I updated it to dispatch the input event and it worked beautifully. I owe you a hug.

@syranide
Copy link
Contributor

Closing as this seems resolved and was an issue with the plugin.

@mdressman
Copy link

This post just saved me. I was also trying to manually fire change events. Switched to input event type and success! Just wanted to say thanks.

@saptarshi-bhattacharjee

This post just saved me. I was also trying to manually fire change events. Switched to input event type and success! Just wanted to say thanks.

Please share the solution. Facing same issue.

@saptarshi-bhattacharjee

Thanks for the reply. I updated it to dispatch the input event and it worked beautifully. I owe you a hug.

How to dispatch input event? can you please share?

1 similar comment
@saptarshi-bhattacharjee

Thanks for the reply. I updated it to dispatch the input event and it worked beautifully. I owe you a hug.

How to dispatch input event? can you please share?

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

5 participants