-
Notifications
You must be signed in to change notification settings - Fork 76
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
IE not firing onOptionClick() #15
Comments
@kylehood Thanks for reporting the issue. What version of IE is this happening in? |
@ezequiel Definitely in IE10, and it looks like it is behaving similarly in IE9 as well. |
👍 although I don't think this is IE specific. I was having same problem in Chrome, looked here, commented out that line and it works now. |
@ezequiel Having this issue on Chrome, does not appear to be IE specific |
I'm having this issue in IE 11. |
I have been running into an issue where onOptionClick() will not fire in Internet Explorer. I think it is an issue with the handleWindowClose event getting fired when it shouldn't be.
I think the culprit is in typehead.js:103
From there, moving down to the handleWindowClose() function, It looks like the event target is the entire window, not the option I just clicked.
Setting capture to false on line 103 seems to fix the issue. I believe the root cause is that the bubbling causes the focus on the window first instead of the option actually clicked. Therefor, the dropdown just closes without triggering an onOptionClick.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: