Prerequisites
馃挜 Demo Page
https://jsbin.com/zozedaluna/edit?html,js,output
Explanation
In verion 4.37.1 you have introduced a bug at:
|
_s.dropdown.enabled = this.origSettings.dropdown.enabled; |
When Tagify is instantiated without dropdown settings, and tagify.setReadonly(false) is called, then an error is thrown because this.origSettings.dropdown is undefined. (see jsbin above)
-
What is the expected behavior?
Should run without undefined error. If dropdown setting is omitted, fall back to default setting or include check if dropdown setting is provided.
-
What is happening instead?
Error is thrown.
-
What error message are you getting?
Uncaught TypeError: Cannot read properties of undefined (reading 'enabled')
at N.setReadonly (tagify@4.38.0:34:55046)
Prerequisites
馃挜 Demo Page
https://jsbin.com/zozedaluna/edit?html,js,output
Explanation
In verion
4.37.1you have introduced a bug at:tagify/src/tagify.js
Line 1081 in 37bf429
When Tagify is instantiated without
dropdownsettings, andtagify.setReadonly(false)is called, then an error is thrown becausethis.origSettings.dropdownis undefined. (see jsbin above)What is the expected behavior?
Should run without undefined error. If
dropdownsetting is omitted, fall back to default setting or include check ifdropdownsetting is provided.What is happening instead?
Error is thrown.
What error message are you getting?