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
In case of initializing Tagify in ‘select’ mode with an empty whitelist, an Uncaught TypeError occurs when the input element is focused.
Here is the code to reproduce the issue:
new Tagify(document.querySelector('input'), {
mode: 'select',
whitelist: [],
});
The error message is as follows:
Uncaught TypeError: Cannot read properties of undefined (reading 'closest')
at Y.onDoubleClickScope
at Y.onClickScope
It seems that the cause of this error is that e.target is undefined in the first line of the onDoubleClickScope method, specifically at e.target.closest.
onDoubleClickScope(e) {
var tagElm = e.target.closest('.' + this.settings.classNames.tag),
It would be greatly appreciated if this issue could be resolved.
The text was updated successfully, but these errors were encountered:
In case of initializing Tagify in ‘select’
mode
with an emptywhitelist
, anUncaught TypeError
occurs when the input element is focused.Here is the code to reproduce the issue:
The error message is as follows:
It seems that the cause of this error is that
e.target
is undefined in the first line of theonDoubleClickScope
method, specifically ate.target.closest
.It would be greatly appreciated if this issue could be resolved.
The text was updated successfully, but these errors were encountered: