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

feat: add dropdownShouldOpen prop (#1464)

This commit is contained in:
Jeff Sagal
2021-07-22 13:51:43 -07:00
committed by GitHub
parent 94549ff903
commit 1676947319
3 changed files with 40 additions and 1 deletions
+15
View File
@@ -187,6 +187,21 @@ disabled: {
},
```
## dropdownShouldOpen <Badge text="v3.12.0+" />
Determines whether the dropdown should open. Used
for overriding the default dropdown behaviour. Receives
the vue-select instance as the single argument to the function.
```js
dropdownShouldOpen: {
type: Function,
default({noDrop, open, mutableLoading}) {
return noDrop ? false : open && !mutableLoading;
}
}
```
## filter