2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

docs(resetOnOptionsChange): update documentation (#1019)

Related #1015
This commit is contained in:
Jeff Sagal
2019-12-02 13:21:02 -08:00
committed by GitHub
parent 2a51460487
commit 582a0f0fac
+11 -3
View File
@@ -339,12 +339,20 @@ createOption: {
## resetOnOptionsChange
When false, updating the options will not reset the select value
When false, updating the options will not reset the selected value. Accepts
a `boolean` or `function` that returns a `boolean`. If defined as a function,
it will receive the params listed below.
```js
/**
* @type {Boolean|Function}
* @param {Array} newOptions
* @param {Array} oldOptions
* @param {Array} selectedValue
*/
resetOnOptionsChange: {
type: Boolean,
default: false
default: false,
validator: (value) => ['function', 'boolean'].includes(typeof value)
},
```