1
0
mirror of synced 2024-11-25 22:36:03 +03:00
select2/tests/selection
Kevin Brown f2d527ea97
Do not propagate click when search box is not empty (#5580)
This fixes a long-standing bug where if you tried to click in the
search box for a multiple select while there was text in it, the
dropdown would close and the text would be cleared. This caused
many unexpected issues, because it meant that you could only use
your keyboard to edit text within the search box.

This will still clear out the search field if you click within the
area of the selection which is not the search field. I'm not sure
if that is also unexpected behaviour, so for now I am going to
maintain it.

Fixes #3517
Fixes #3808
Fixes #5491
Closes #5551
2019-07-21 13:04:51 -04:00
..
allowClear-tests.js #4530 Add tooltip (title) to the 'remove all' 'X' icon. (#5291) 2018-09-15 16:22:54 -03:00
containerCss-tests.js Add back *css* options through an adapter 2015-04-05 21:58:02 -04:00
focusing-tests.js Convert source and tests to unix newlines 2019-07-20 23:01:38 -04:00
multiple-tests.js Add failing tests 2017-10-26 12:59:04 -04:00
placeholder-tests.js Combine tests into common files 2015-02-13 23:29:56 -05:00
search-tests.js Do not propagate click when search box is not empty (#5580) 2019-07-21 13:04:51 -04:00
single-tests.js Add failing tests 2017-10-26 12:59:04 -04:00
stopPropagation-tests.js Migrate from expect to assert.expect 2016-05-23 23:38:45 -04:00