jquery-nice-select icon indicating copy to clipboard operation
jquery-nice-select copied to clipboard

Nice select dropdown not working with "e.stopPropagation();"

Open tijosfx opened this issue 5 years ago • 1 comments

Hi all, Nice select dropdown not working with "e.stopPropagation();" can you please help with this? See demo: https://codepen.io/tijosfx/pen/zYvogXJ

Thanks

tijosfx avatar Apr 22 '20 14:04 tijosfx

I have a similar issue. In my application I open a form in a modal (using bootstrap) and when the form is submitted using ajax and the modal closes, the nice select stops working.

I tried to destroy and recreate the select, update the select but nothing works.

What is interesting is that other evens, like the ajax reload of a Datatable, does work as intended after the modal closes. I guess it has to do with the stopPropagation()as well, because if I just open the modal but closes it without submitting the form, nice select still works.

weidmaster avatar Sep 01 '20 17:09 weidmaster