question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyboard selection is rudely interrupted and overridden by auto-complete mouse-enter actions.

See original GitHub issue
  • downshift version: 1.16.0
  • node version: 8.5.0
  • npm (or yarn) 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

  1. Navigate to any example: http://downshift.netlify.com/?selectedKind=Examples&selectedStory=basic&full=0&down=1&left=1&panelRight=0
  2. Open the menu by changing the input
  3. Make sure there are multiple “pages” of options.
  4. Place your cursor over the first option in the list
  5. Using the down-arrow on your keyboard, navigate down the list
  6. 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:closed
  • Created 6 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ibrahimacommented, Dec 12, 2017

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?

1reaction
kentcdoddscommented, Oct 25, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found