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 I want to do is add the dynamic data, and I'm using the default test data for now. If I try this
document.addEventListener('DOMContentLoaded', function() {
console.log('you');
var tagsInputElem = document.getElementById('job_skill_list');
new BulmaTagsInput(tagsInputElem, {
source: async function(value) {
// Value equal input value
// We can then use it to request data from external API
return await fetch("https://restcountries.eu/rest/v2/name/" + value)
.then(function(response) {
return response.json();
});
}
});
}, false);
Nothing happens, and no errors in console. The input field is just a regular input field. So I tried to attach only, and got the not a function error
if($('.tagsinput').length == 0 ) {
var tagsinput = BulmaTagsInput.attach();
}
It's a Rails app, and the BulmaTagsInput seems to be loading fine. Below is line from application.js.
I've been battling with this weird error for some time now. Wonder if anyone can help. Basically I have this code:
What I want to do is add the dynamic data, and I'm using the default test data for now. If I try this
Nothing happens, and no errors in console. The input field is just a regular input field. So I tried to attach only, and got the not a function error
It's a Rails app, and the BulmaTagsInput seems to be loading fine. Below is line from application.js.
BulmaTagsInput = require('@creativebulma/bulma-tagsinput')
And here is the Yarn.lock snippet
Sorry for the long ticket. Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: