You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the list box is connected to the DOM, we should reset the focused item either to the first selected item or, if there is no selected item, to the first item in the list.
This would at least help when used inside vaadin-context-menu, where the common case is that when the menu opens the focus should be on the first item in the menu.
The text was updated successfully, but these errors were encountered:
I’m not talking about removing focus indication, though. I’m talking about changing which item has the focus indication and keyboard focus when the list-box becomes visible.
Maybe we should even switch the focus back to the first (selected) item when the list-box itself loses focus? Is there a benefit of letting the user return to the previous item they had keyboard focus on? It’s not visible at least, so it can be a bit arbitrary for the user where the keyboard focus lands in a longer list. Could be more expected that it always lands on the first (selected) item.
web-padawan
changed the title
Reset the focused item when connected (or disconnected) from the DOM
[list-box] Reset the focused item when connected (or disconnected) from the DOM
May 20, 2021
When the list box is connected to the DOM, we should reset the focused item either to the first selected item or, if there is no selected item, to the first item in the list.
This would at least help when used inside vaadin-context-menu, where the common case is that when the menu opens the focus should be on the first item in the menu.
The text was updated successfully, but these errors were encountered: