最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - d.stopPropagation is not a function on bootstrap select-picker - Stack Overflow

programmeradmin3浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 16

Be 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');
发布评论

评论列表(0)

  1. 暂无评论