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

Prevent dropdown from showing twice #1414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Massi-X
Copy link
Contributor

@Massi-X Massi-X commented Nov 27, 2024

In select mode the dropdown will show twice when clicking inside input and then using "Tab" key to get out. Separated "Enter" and "Tab" cases and added conditional to remove blur if mode === select

1.mov

In select mode the dropdown will show twice when clicking inside input and then using "Tab" key to get out
@yairEO
Copy link
Owner

yairEO commented Dec 7, 2024

I can see the issue still happens even with your code changes:

1414.mp4

I click inside, see the dropdown. and hit tab key and the dropdown closes. then hit tab again and the dropdown is re-opened.

I assume you are referring to this behavior

@Massi-X
Copy link
Contributor Author

Massi-X commented Dec 7, 2024

Mmmh interesting. Let me check later today, I will update you

@Massi-X
Copy link
Contributor Author

Massi-X commented Dec 8, 2024

You are right and I'm sorry. I was working on many fixes and things rapidly got screwed up. I inserted a note here because this PR is dependent by that patch too.

To be more precise this PR #1414 helps fixing this behavior the first time you click on the input/tag (or after you removed it), the subsequent time is #1410 (comment) that is taking care of preventing the behavior.

Hope everything is clear

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

Successfully merging this pull request may close these issues.

2 participants