Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete: handle mouse leave event on list to remove active state #29322

Open
1 task done
Cairon opened this issue Feb 11, 2021 · 0 comments
Open
1 task done

Autocomplete: handle mouse leave event on list to remove active state #29322

Cairon opened this issue Feb 11, 2021 · 0 comments
Labels

Comments

@Cairon
Copy link

Cairon commented Feb 11, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

State: Presently when we hover on an option then mouse leave the list, the last hovered option is still 'active'.

Problem: This can produce unexpected behaviors when, for exemple: typing something, hover some options, finally mouse leave the list and type enter (this input still focused), this will select the last hovered option, what is not expected.

Solution: By handling the mouse leave event on the list, it could deactivate the last hovered option.

What does the proposed API look like?

May be an optional behavior with a 'canDeactivate' option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant