Keyboard selection is rudely interrupted and overridden by auto-complete mouse-enter actions.
See original GitHub issuedownshift
version: 1.16.0node
version: 8.5.0npm
(oryarn
) version: yarn 1.0.2
Description
In any downshift configuration (at least thus far in my experience), the mouse position will fire (and select whatever is underneath it) immediately after an arrow-selecting and shift-arrow-paging event.
Replication
- Navigate to any example: http://downshift.netlify.com/?selectedKind=Examples&selectedStory=basic&full=0&down=1&left=1&panelRight=0
- Open the menu by changing the input
- Make sure there are multiple “pages” of options.
- Place your cursor over the first option in the list
- Using the down-arrow on your keyboard, navigate down the list
- As soon as your arrow-down action selects an option beyond the visible set (either by arrowing-down on the last option, or shift-arrowing-down to change the whole page) the option underneath the cursor position will subsequently be selected.
Expected
I would expect the cursor to not activate an option while using arrow navigation, unless of course, the cursor is moved.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
jQuery autocomplete 'focus' event fires, but no reverse ...
This solution reverses the focus function, whenever a user moves out of the menu (by mouse or keyboard), and also reverses whenever user...
Read more >accessing corpora- Categorizing & tagging words | Kaggle
No tooltip on mouseover of images with ALT or TITLE tags small skip of (rhs) ... not selected Using autocomplete causes Phoenix to...
Read more >changelog - GitHub Pages
the 'twisted.internet.defer.CancelledError' logspam is cleaned up! if a client disconnects before a client api autocomplete tag search or a file search is ...
Read more >Bug List - Bugs - Eclipse
Brandys, RESO, INVA, [Backport] libunix interface broken for readlink() ... INVA, [Actions] Different plugins can't assing the same toolbarPath to actions.
Read more >Element: mouseenter event - Web APIs | MDN
The mouseenter event is fired at an Element when a pointing device (usually a mouse) is initially moved so that its hotspot is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My 2c, I think part of the naming confusion is because it’s not an arrow button, but an arrow key. Button makes web developers think of
<button>
I think 😛.isArrowKeyPressed
?Hmmm… the
isArrowButtonClicked
name just isn’t working for me… But feel free to open a PR and we can talk about it there.Also, I wonder whether
pointer-events
could help us here.