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.

Select menu behavior

See original GitHub issue

Problems

Check select menu stories in storybook and some use case in our segment app I think there are a few issues for select menu:

  1. Use keyboard arrow key up/down, the list doesn’t scroll into the selected position, so you can’t see where you are at in the list

kapture 2018-07-12 at 13 43 15

  1. Use keyboard arrow key up/down are selecting the current item. Checked some select menu examples such as http://blueprintjs.com/docs/versions/2/#select/select-component, Github Assignees issue selector, the list allows us use arrow key to browse list items without triggering select immediately. So we consume the original state of selected item if we only browse list. That being said, hitting enter key should select the item. onSelect should be the prop that let user decide if menu should be closed or deselect.

Example of working select menu

kapture 2018-07-12 at 13 44 26

  1. After close the menu, while it’s still focused on the toggle button, hit enter won’t open the menu. Only pressing the enter key down will keep the menu open.

Evergreen select menu

kapture 2018-07-12 at 13 59 32

Example of working select menu

kapture 2018-07-12 at 13 58 37

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sdoan16commented, Feb 7, 2020

@mshwery Is anyone working on this?

0reactions
mshwerycommented, Jul 14, 2021

Closing this as 1 has been resolved, and 2 is up for discussion with EG maintainers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dropdowns: Design Guidelines - Nielsen Norman Group
Guidelines for Dropdown Design · Avoid interacting menus · Gray out any unavailable options · Avoid dropdown boxes when typing may be faster....
Read more >
Dropdown - Semantic UI
A dropdown menu can contain floated content. Floated content may stack to two lines without manually setting a width when or using a...
Read more >
UI cheat sheet: dropdown field - UX Collective
While long dropdowns are not ideal, you can group some of the items under different categories to make searching for what you want...
Read more >
Say Hello to selectmenu, a Fully Style-able select Element
I want to introduce you to a new, experimental form control called selectmenu, including how much easier it is to style than a...
Read more >
How to select a dropdown menu as the element of a Guide step?
This article provide directions on selecting a dropdown menu as an ... Since dropdown menus generally reveal their content by demand and their...
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