61a231d868
In the past, `select2("data")` allowed you to retrieve the currently selected data objects. Read-only support has been added back for this, which maps to the `current` method of the data adapter. This will only work for data adapters which allow for the synchronous retrieval of the current data, which is the case for all of the default data adapters. You could also previously overwrite the currently selected data objects by passing in an argument to `select2("data")`. As this dealt directly with the internals, and required a considerable amount of work to synchronize it, it has been removed. A warning will now be triggered if the method is called with additional elements, and the `val` method should be used instead. This closes https://github.com/select2/select2/issues/2938. |
||
---|---|---|
.. | ||
i18n | ||
select2.amd.full.js | ||
select2.amd.js | ||
select2.full.js | ||
select2.full.min.js | ||
select2.js | ||
select2.min.js |