I have an issue on my site, the select picker works fine a lot of time, but without making any changes on the code, the select-picker stopped working.
The error is:
bootstrap-select.min.js:7 Uncaught TypeError: d.stopPropagation is not a function
I already tried updating the version of the library, but all the versions I tried (1.10, 1.7, 1.6 and 1.5) looks with the same issue.
Can you bring me some ideas of what's happening? If you can see the console on the website would be awesome.
I have an issue on my site, the select picker works fine a lot of time, but without making any changes on the code, the select-picker stopped working.
The error is:
bootstrap-select.min.js:7 Uncaught TypeError: d.stopPropagation is not a function
I already tried updating the version of the library, but all the versions I tried (1.10, 1.7, 1.6 and 1.5) looks with the same issue.
Can you bring me some ideas of what's happening? If you can see the console on the website would be awesome.
Share Improve this question edited Aug 12, 2018 at 0:52 d219 2,8357 gold badges33 silver badges39 bronze badges asked Jun 22, 2016 at 17:43 rleivarleiva 1052 silver badges8 bronze badges2 Answers
Reset to default 16Be sure the selectpicker is fully initialized before setting the value:
$('.selectpicker').selectpicker();
$('.selectpicker').selectpicker('val', 'All');
Just had a similar issue but found that
$('#myselectpicker').selectpicker();
did not resolve it and I needed to call refresh;
$('#myselectpicker').selectpicker('refresh');