You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
It should verify if document.activeElement is an element related to tagify before calling blur()
What is happening instead?
The blur() method is called on document.activeElement regardless of whether the active element is part of Tagify. This leads to a scenario where any focused element will lose focus, disrupting user interactions outside of the Tagify context.
document.activeElement.blur()// exit possible edit-mode
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.
The text was updated successfully, but these errors were encountered:
Prerequisites
馃挜 Demo Page
https://jsbin.com/yododahodi/edit?html,js,output
Explanation
What is the expected behavior?
It should verify if
document.activeElement
is an element related to tagify before callingblur()
What is happening instead?
The
blur()
method is called ondocument.activeElement
regardless of whether the active element is part of Tagify. This leads to a scenario where any focused element will lose focus, disrupting user interactions outside of the Tagify context.tagify/src/tagify.js
Line 1011 in 3ecfbc2
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.
The text was updated successfully, but these errors were encountered: