Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Minor UX issue when clicking outside the container #132

Open
martin9348 opened this issue Aug 30, 2019 · 0 comments
Open

Minor UX issue when clicking outside the container #132

martin9348 opened this issue Aug 30, 2019 · 0 comments

Comments

@martin9348
Copy link

martin9348 commented Aug 30, 2019

If the dropdown is open (options list being shown), when clicking outside the container, the focus on the element that was clicked is lost.

In other words, if I click the select box to select an option then change my mind and click another field in the form (while the dropdown/options list is shown), the focus in that new field is lost.

Currently, in the code it's doing the following:
document.addEventListener("click", this.events.dismiss);

If I replace with the following, it seems to fix the issue:
document.addEventListener("mousedown", this.events.dismiss);

Any thoughts?

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

No branches or pull requests

1 participant