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

feat(clearsearchonblur): add clearSearchOnBlur prop (#1077)

Add docs, update tests from #1060.
This commit is contained in:
Jeff Sagal
2020-03-01 16:31:21 -08:00
committed by GitHub
parent 33104b5380
commit 207c6d1cb6
2 changed files with 22 additions and 9 deletions
+13
View File
@@ -120,6 +120,19 @@ clearSearchOnSelect: {
},
```
## clearSearchOnBlur
Enables/disables clearing the search text when the search input is blurred.
```js
clearSearchOnBlur: {
type: Function,
default: function ({ clearSearchOnSelect, multiple }) {
return clearSearchOnSelect && !multiple
}
},
```
## closeOnSelect
Close a dropdown when an option is chosen. Set to false to keep the dropdown