yairEO / tagify

🔖 lightweight, efficient Tags input component in Vanilla JS / React / Angular / Vue
https://yaireo.github.io/tagify/
Other
3.56k stars 436 forks source link

setReadonly/setDisabled will blur any element that is not related to Tagify #1328

Closed Maxime117 closed 7 months ago

Maxime117 commented 7 months ago

Prerequisites

💥 Demo Page

https://jsbin.com/yododahodi/edit?html,js,output

Explanation

https://github.com/yairEO/tagify/blob/3ecfbc2ed1de444bdcdbb10d8b62a61ae2fdc8fa/src/tagify.js#L1011 I'm unsure what this line is meant to do. I guess it's here to exit edit-mode on tags, as the tagify input should loose focus naturally when it has the readonly/disabled attribute.