Skip to content

Commit

Permalink
@search instead of on-search
Browse files Browse the repository at this point in the history
  • Loading branch information
sagalbot committed Nov 8, 2019
1 parent 92658a3 commit 38f291a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ has always provided the same parameters and can be used in it's place.
<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
would first check if the search string was empty, and only run the callback if it had at least one
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 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
run on an empty string.

Expand Down

0 comments on commit 38f291a

Please sign in to comment.