forked from reactjs/react-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore blur on menu enter/leave instead of the individual items react…
…js#211 reactjs#222 IE11 (and probably older versions) trigger a click event when you grab the scrollbar thumb. Since the scrollbar isn't part of any individual item within the menu, we promptly closed it, thinking the click happened outside the dropdown. This commit changes the logic to instead capture focus while the user is hovering over the menu, keeping the input focused until the user either clicks outside or selects an item.
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters