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

Clicking vertical scrollbar for suggestions in IE closes menu #705

Closed
henkli opened this issue Feb 18, 2014 · 10 comments
Closed

Clicking vertical scrollbar for suggestions in IE closes menu #705

henkli opened this issue Feb 18, 2014 · 10 comments

Comments

@henkli
Copy link

henkli commented Feb 18, 2014

If the suggestions menu has a vertical scrollbar, e.g. has a max-width set, clicking the scrollbar closes the typeahead menu in Internet Explorer. The scroll bar works fine in Firefox and Chrome.

Affects at least IE8, IE11 (probably IE9 and IE10 as well).
IE8: Clicking scroll up/down icons works fine, but dragging the "scroll element" does not.
IE11: Clicking anywhere on the scrollbar closes the menu.
Tested using typeahead.js 0.10.1

Example fiddle: http://jsfiddle.net/r2a2G/

@jharding jharding added this to the v0.10.2 milestone Feb 18, 2014
@jharding jharding added the bug label Feb 18, 2014
@jharding
Copy link
Contributor

Thanks for reporting this. I'll look into getting this fixed for v0.10.2.

@lgoudriaan
Copy link

Any temp fix for this?

@jharding
Copy link
Contributor

jharding commented Mar 8, 2014

#752 contains what I think is a fix. If you can, please test it out and let me know if it resolves your issue.

@lgoudriaan
Copy link

Yes this works for me, Thanks!

@DealerCorp
Copy link

still happening

@cartochris
Copy link

I'm not too sure why this is closed as I still experience this issue? Is there a fix for this? It even happens on the main examples page for the Scrollable Dropdown Menu.

@worthy7
Copy link

worthy7 commented Oct 18, 2017

Hi guys, just to let you know it looks like a bug in the latest IE11.0.47, which has reintroduced this bug.

@joezp
Copy link

joezp commented Oct 20, 2017

In case anyone needs a solution, I basically made a version of _hacks() that relies on a focus flag set using mouseenter, mouseleave events on the menu. Seems to do the trick.

@worthy7
Copy link

worthy7 commented Oct 20, 2017

That's what I did too:
corejavascript/typeahead.js#166

@joezp
Copy link

joezp commented Oct 20, 2017

mouseenter/leave didn't occur to me until I saw this on a similar problem.
https://stackoverflow.com/questions/2284541/form-input-loses-focus-on-scroll-bar-click-in-ie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

7 participants