mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
@search instead of on-search
This commit is contained in:
@@ -69,10 +69,10 @@ has always provided the same parameters and can be used in it's place.
|
|||||||
<v-select @search="doSomeAjax" />
|
<v-select @search="doSomeAjax" />
|
||||||
```
|
```
|
||||||
|
|
||||||
### `onSearch` with null search string
|
### `@search` with null search string
|
||||||
|
|
||||||
The `onSearch` callback is now fired anytime the search string changes. In v2.x, the component
|
The `@search` event is now fired anytime the search string changes. In v2.x, the component
|
||||||
would first check if the search string was empty, and only run the callback if it had at least one
|
would first check if the search string was empty, and only emit the event if it had at least one
|
||||||
character. This was a design mistake, as it should be the consumers decision if a search should be
|
character. This was a design mistake, as it should be the consumers decision if a search should be
|
||||||
run on an empty string.
|
run on an empty string.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user