Prevent dropdown from showing twice
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
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
Mmmh interesting. Let me check later today, I will update you
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