Closed NickDarvey closed 4 years ago
Edit: Yeah you know what it was? I installed bulma-tagsinput, not @CreativeBulma/bulma-tagsinput. Classic!
bulma-tagsinput
@CreativeBulma/bulma-tagsinput
I'm having an issue attaching to a HTMLInputElement (when passed as an element).
index.html
<input id="cheese" type="tags" class="input"> <script src="dist/bulma-tagsinput.min.js"></script>
var test = document.getElementById("cheese")
tagsinput
bulmaTagsinput.attach(test)
test.BulmaTagsInput() is available.
test.BulmaTagsInput()
bulma-tagsinput.min.js:formatted:361 Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': '[object HTMLInputElement]' is not a valid selector. at Function.value (https://localhost:5001/dist/bulma-tagsinput.min.js:1:8944)
I would expect this line to be hit: https://github.com/CreativeBulma/bulma-tagsinput/blob/d4b3088d0df78b43b2f6ba011dea81e521e52358/src/js/utils/type.js#L10 because it does return true when I try it in my debug console.
Looking at the minified javascript, it doesn't look like it's hit.
Edit: Yeah you know what it was? I installed
bulma-tagsinput
, not@CreativeBulma/bulma-tagsinput
. Classic!I'm having an issue attaching to a HTMLInputElement (when passed as an element).
Repro
index.html
tagsinput
Expected
test.BulmaTagsInput()
is available.Actual
Other Info
I would expect this line to be hit: https://github.com/CreativeBulma/bulma-tagsinput/blob/d4b3088d0df78b43b2f6ba011dea81e521e52358/src/js/utils/type.js#L10 because it does return true when I try it in my debug console.
Looking at the minified javascript, it doesn't look like it's hit.