tagify icon indicating copy to clipboard operation
tagify copied to clipboard

Prevent dropdown from showing twice

Open Massi-X opened this issue 1 year ago • 3 comments

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

https://github.com/user-attachments/assets/533ee6a9-520f-4b13-8b41-28a16cf9c5e3

Massi-X avatar Nov 27 '24 00:11 Massi-X

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

https://github.com/user-attachments/assets/4c080659-c591-42fe-9586-942c163b86d5

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

yairEO avatar Dec 07 '24 14:12 yairEO

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

Massi-X avatar Dec 07 '24 15:12 Massi-X

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 https://github.com/yairEO/tagify/pull/1410#discussion_r1874846173 that is taking care of preventing the behavior.

Hope everything is clear

Massi-X avatar Dec 08 '24 14:12 Massi-X