hotwired / stimulus

A modest JavaScript framework for the HTML you already have
https://stimulus.hotwired.dev/
MIT License
12.62k stars 418 forks source link

Support for select2 event #211

Closed msz2017 closed 5 years ago

msz2017 commented 5 years ago

$('#mySelect2').on('select2:select', function (e) { // Do something });

adrienpoly commented 5 years ago

Select2 does not fire native events. To use select2 with stimulus you must convert the select2 events to native events

Here are several resources :

In general, for support questions the community forum is a better place: https://discourse.stimulusjs.org/