We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
onFocus
5.2
https://codesandbox.io/s/blue-dawn-z4l1l?file=/src/index.js
onFocus should only fire once
onFocus fires twice, once for the focus event and once for the click event.
Happening because onFocus is being called inside onClick here.
onClick
The text was updated successfully, but these errors were encountered:
Workaround:
<Typeahead ... onFocus={(e) => { if (e.type === 'focus') { // Do what you want on focus } }} />
Sorry, something went wrong.
Only fire onFocus event once (#665)
7278574
Fixed in v6.0.0-alpha.2
No branches or pull requests
Version
5.2
Steps to reproduce
https://codesandbox.io/s/blue-dawn-z4l1l?file=/src/index.js
Expected Behavior
onFocus
should only fire onceActual Behavior
onFocus
fires twice, once for the focus event and once for the click event.Happening because
onFocus
is being called insideonClick
here.The text was updated successfully, but these errors were encountered: