1
0
mirror of synced 2024-11-26 06:46:04 +03:00
select2/dist/js
Kevin Brown d81886e5de Trigger the unselect event when clearing placeholder
In the past, Select2 triggered the `select2-clearing` event when
clearing the placeholder. This has been switched to the `unselect`
event which is now triggered whenever the placeholder is cleared.
The placeholder can also be prevented if the `unselecting` event
is prevented.

This will also trigger the event when deleting every option from
the multiple select, so it is possible for the `unselecting` event
to be triggered multiple times when clearing a multiple select.

This adds tests to ensure that the `allowClear` option always works.

This closes https://github.com/select2/select2/issues/2954.
2015-01-21 19:11:07 -05:00
..
i18n Added dutch translations 2015-01-17 22:11:17 -05:00
select2.amd.full.js Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
select2.amd.js Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
select2.full.js Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
select2.full.min.js Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
select2.js Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
select2.min.js Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00