Skip to content

SelectDropdown: Focus "select" button on select action

Compare
Choose a tag to compare
@ItsJonQ ItsJonQ released this 05 Jan 14:46

This update ensures that the "select" (button) is focused after a selection action is made (either with mouse events or keyboard events).

The solution involved creating an internal ref for the button element, and (force) focusing that element within the close callback.

Screen Capture on 2021-01-04 at 17-30-37

GIF above shows the Select element being focused (highlighted) after selecting an item.

Resolves #208