-
Notifications
You must be signed in to change notification settings - Fork 110
Dropdown closes on scroll #177
Comments
This occurs in IE 11 as well (I was investigating this very thing and was about to create an issue). Step 3 above should say "The dropdown now closes when you mousedown on the scrollbar". Mousewheel scrolling doesn't trigger the issue. 4/14/2017: |
Thanks for the detailed report! It has just been fixed in the master branch. |
Thank you for a great job! |
Hi again, The fromElement-property seem to not be very cross-browser compatible. I believe I have solved it by using the relatedTarget-property instead:
|
To replicate (I'm using Chrome Version 56.0.2924.87):
At appears like Chrome triggers the mouseleave event when entering the scrollbar, while Firefox don't.
To avoid removing the "hover"-class, I solved it by limiting the mouseleave-event to only trigger when leaving the complete control, instead of trigger when leaving each dropdown list item.
Old code (jQuery):
New code (jQuery):
The text was updated successfully, but these errors were encountered: