1
0
mirror of synced 2024-11-23 05:26:10 +03:00
select2/tests/selection
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
..
allowClear-tests.js Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
allowClear.html Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
multiple-tests.js Add tests for the multiple selection container 2014-11-26 20:50:39 -05:00
multiple.html Add tests for the multiple selection container 2014-11-26 20:50:39 -05:00
placeholder-tests.js Normalize internal select/unselect events 2015-01-09 10:05:44 -05:00
placeholder.html Normalize internal select/unselect events 2015-01-09 10:05:44 -05:00
single-tests.js Added tests for the single selection container 2014-11-26 20:25:56 -05:00
single.html Added tests for the single selection container 2014-11-26 20:25:56 -05:00