Skip to content

Commit

Permalink
docs(resetOnOptionsChange): update documentation
Browse files Browse the repository at this point in the history
Related #1015
  • Loading branch information
sagalbot committed Dec 2, 2019
1 parent 2a51460 commit d4fe9e3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/api/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
```

Expand Down

0 comments on commit d4fe9e3

Please sign in to comment.