Why does the select2-removing event not trigger in select2 with allowClear?
select2 v4.0.3
$('#smartsearch').on('select2:unselecting', function (e) {
alert('You clicked on X');
});
For all the select2 Options & Events
For me the only thing that worked is the 'select2:unselect'
event... (In non-multiple select box)
I got it working with the 'select2-removed'
-event instead of 'select2-removing'
when using the clear button.
As to why it does not trigger still eludes me.