Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Sometimes the dropdown does not close #366

Open
elisei-timofte opened this issue Dec 4, 2018 · 0 comments
Open

Sometimes the dropdown does not close #366

elisei-timofte opened this issue Dec 4, 2018 · 0 comments

Comments

@elisei-timofte
Copy link

elisei-timofte commented Dec 4, 2018

"react-autocomplete": "^1.8.1"
"react": "^16.4.1"

There is a small bug regarding the closing of an opened dropdown, when clicking outside the input.

Steps to reproduce:

  1. Focus the input
  2. Fast hover one option (~100ms)
  3. Now, the dropdown is not closing when clicking outside
  4. Hover again the option, but longer (~500-1000ms)
  5. Now, the dropdown close as expected when focusing other input, or when clicked outside the dropdown

Note: At point (3) the dropdown acts normally if I press TAB (focus the next input) or ESC (close the dropdown)

Here you can see it in action https://youtu.be/dQVJv2En-iM

At minute 0:06 is the first attempt of replicating the bug (passes - notice the name dropdown closing and the email dropdown opening)
At 0:10 is the second attempt (fails - the name dropdown does not close any more when clicking the email)

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