1
0
mirror of synced 2024-11-26 06:46:04 +03:00
select2/tests
Kevin Brown 584d3b48a2 Added selectOnClose
`selectOnClose` is a new option which works very much like the old
`selectOnBlur` option. When the `close` event is triggered, the
highlighted result is automatically selected. This is useful for
single selects, which is where it is designed to be used, but it
can also be used on multiple selects.

This also adds tests to verify that this works in the future.

During the creation of the test, we noticed that we were missing a
mock container that could be used for triggering events. One was
created and a general mock JS file was created to hold any future
mocks for tests.
2015-01-11 21:47:17 -05:00
..
data Added a few more tests 2015-01-11 16:30:16 -05:00
dropdown Added selectOnClose 2015-01-11 21:47:17 -05:00
options Added back the width option 2015-01-11 18:00:48 -05:00
selection Normalize internal select/unselect events 2015-01-09 10:05:44 -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