mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-07 16:32:32 +02:00
0e8e42e015
* add specs * fix to restore preset choices after destroy * avoid to modify `this.config.choices` directly * Update cypress/integration/select-one.spec.js Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * Update public/test/select-one.html Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * Update public/test/select-one.html Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * Update public/test/select-one.html Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * Update public/test/select-one.html Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * fix specs * restoring passed element initial options - Save `passedElement.options` values as `this._presetOptions` - Restore saved `this._presetOptions` to `passedElement.options` on `destroy` - It avoids restoring options in `this.config.choices` * Update cypress/integration/select-one.spec.js Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * Update cypress/integration/select-one.spec.js Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * Update public/test/select-one.html Co-Authored-By: Josh Johnson <josh@joshuajohnson.co.uk> * move preset options assignment statement |
||
---|---|---|
.. | ||
actions | ||
components | ||
lib | ||
reducers | ||
store | ||
choices.js | ||
choices.test.js | ||
constants.js | ||
constants.test.js | ||
templates.js | ||
templates.test.js |