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
And dynamically add some options with: $('#bugtest-id').html(options);
Then appears an error on: $('#select-test').selectpicker('refresh');
One get in Chrome the error:
bundle.js:1374 Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.
at Object.a (http://localhost:3000/js/bundle.js:1374:77)
at buildElement (http://localhost:3000/js/bundle.js:2265:30)
at Selectpicker.buildList (http://localhost:3000/js/bundle.js:2311:9)
at Selectpicker.refresh (http://localhost:3000/js/bundle.js:3646:12)
at HTMLSelectElement.<anonymous> (http://localhost:3000/js/bundle.js:3772:35)
at Function.each (http://localhost:3000/js/bundle.js:9034:19)
at jQuery.fn.init.each (http://localhost:3000/js/bundle.js:8869:17)
at jQuery.fn.init.Plugin [as selectpicker] (http://localhost:3000/js/bundle.js:3744:22)
Without the class tag class="bugtest" there are no problems
The text was updated successfully, but these errors were encountered:
I tested with Version 1.13.15 with Chrome and Bootstrap 4.3.1
When one add a class in the optgroup:
And dynamically add some options with:
$('#bugtest-id').html(options);
Then appears an error on:
$('#select-test').selectpicker('refresh');
One get in Chrome the error:
Without the class tag
class="bugtest"
there are no problemsThe text was updated successfully, but these errors were encountered: