-
-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
Description
When using the keyboard to select a value from a select, the visually selected state (managed by adding a .sv-dd-item-active class) does not get reset when the select is cleared.
See the first example: https://svelecte-v5.vercel.app/examples#multiselect
Steps to reproduce:
- Clear the input by clicking on the X inside it.
- Select the input by clicking it.
- Then use the keyboard arrows to navigate to a value (f.e. "Fuchsia")
- Press enter to select it. (the input label changes to "1 selected")
- Clear the input by clicking on the X inside it.
- Select the input by clicking it.
- Notice that "Fuchsia" visually has a selected state, even though it's not actually selected.
Even when using highlightFirstItem={false} and disableHighlight={true} this behavior does not change.
Am I missing something? Do i manually need to remove the class altogether when no value is selected?