1
0
mirror of synced 2024-11-22 21:16:10 +03:00
select2/tests
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
..
a11y Added basic accessibility tests 2015-01-14 22:54:19 -05:00
data only verify when maximumSelectionCount is greater than 0 and add tests 2015-01-13 13:00:16 -05:00
dropdown Added selectOnClose 2015-01-11 21:47:17 -05:00
options Pull query and initSelection out to compat modules 2015-01-17 20:47:52 -05:00
selection Trigger the unselect event when clearing placeholder 2015-01-21 19:11:07 -05:00
utils Added inline searching for multiple selects 2014-11-22 19:21:46 -05:00
vendor Added Utils.Decorate and tests 2014-10-21 21:43:56 -04:00
mock.js Added selectOnClose 2015-01-11 21:47:17 -05:00