bootstrap-select
bootstrap-select copied to clipboard
Selectpicker's shown.bs.select event is not working in bootstrap 5
Hi There,
I am currently using the Bootstrap-select version 1.14.0-beta3 in bootstrap 5, and in this particular version, this event show.bs.select is not working, is there any solution for that issue?
Below is the sample code:
let filterSelectPicker = ($(".filterSelectPicker") as any).selectpicker();
filterSelectPicker.on('shown.bs.select', (e:any) => {
let selectedId = e.target.id;
console.log('Filter is selected');
console.log(selectedId);
});
Please help me asap, because this particular issue is a blocker for me, as I am upgrading my application from bootstrap v4 to bootstrap v5 and I need this particular On Select functionality in my application.
Thanks in advance.
I have the same problem! Do you have any alternative for this?
I didn't find any solution for this bug and there are other bugs too in this particular plugin for Bootstrap 5, so I switched to another plugin for dropdowns, which is much better than this selectpicker plugin