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

IE not firing onOptionClick() #15

Open
kylehood opened this issue Aug 21, 2015 · 5 comments
Open

IE not firing onOptionClick() #15

kylehood opened this issue Aug 21, 2015 · 5 comments

Comments

@kylehood
Copy link

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

addEvent('focus', handleWindowClose, true);

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?

@ezequiel
Copy link
Owner

@kylehood Thanks for reporting the issue. What version of IE is this happening in?

@kylehood
Copy link
Author

@ezequiel Definitely in IE10, and it looks like it is behaving similarly in IE9 as well.

@slobdell
Copy link

👍 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.

@Fireworks
Copy link

@ezequiel Having this issue on Chrome, does not appear to be IE specific

@meriloi
Copy link

meriloi commented Jan 10, 2016

I'm having this issue in IE 11.

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

5 participants