web-components
web-components copied to clipboard
fix: focus select when opening on toggle button click
Description
Unlike other components like vaadin-combo-box and vaadin-date-picker, clicking toggle button does NOT focus the vaadin-select-value-button, whereas clicking anywhere else in vaadin-input-container does focus it.
This can end up with some unexpected scenarios e.g. focus one select with keyboard -> click toggle button in the second select -> close that select -> focus remains in the first select (not in the one that has been interacted with).
Updated the logic to check for this case and call focus() when opening so that focus can be saved and restored.
Type of change
- Bugfix
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code