This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Description
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?