Skip to content
Verified Commit bd241dfb authored by Mark Florian's avatar Mark Florian
Browse files

fix(GlFilteredSearch): Keep active state on backspace on first token

This is a follow-up to
gitlab-org/gitlab-ui!2705, which
changed how the active state of tokens is managed on token destruction.

It introduced a small usability issue where if you repeatedly backspace
to clear `GlFilteredSearch` of all tokens, you could no longer enter
_new_ tokens (though you could enter text), and you had to blur and then
focus the component to fix it.

This change makes sure that if you backspace-to-delete the first token,
then the _new_ first token will be activated.
parent 15b4ccbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment