bootstrap-select icon indicating copy to clipboard operation
bootstrap-select copied to clipboard

Selectpicker's shown.bs.select event is not working in bootstrap 5

Open pranavwhiz opened this issue 2 years ago • 2 comments

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. image

pranavwhiz avatar Aug 26 '22 11:08 pranavwhiz

I have the same problem! Do you have any alternative for this?

develop-joseavila avatar Mar 27 '23 15:03 develop-joseavila

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

mdbootstrap

pranavwhiz avatar Mar 28 '23 03:03 pranavwhiz