1
0
mirror of synced 2024-11-25 22:36:03 +03:00
select2/dist
Kevin Brown 8ea23610f1 Convert array data to options immediately
This converts individual objects passed in through the `array`
parameter to `<option>` tags when Select2 is initialized. This
removes a lot of duplicate code from the `ArrayAdapter`, and keeps
everything closer to the native `<select>` element.

This introduces a breaking change from previous versions of Select2,
where the initial value for array data was blank, even if a blank
option was not present in the original array of objects. Now the
first object passed in will be selected by default, following the
behavior of a standard `<select>` element.

This breaking change does not affect `<select multiple="multiple">`
elements, which by default have no selection.
2014-11-06 12:05:12 -05:00
..
css Accessibility matches better 2014-10-21 21:44:00 -04:00
js Convert array data to options immediately 2014-11-06 12:05:12 -05:00