Skip to content

Commit

Permalink
docs: add description about toggle slot
Browse files Browse the repository at this point in the history
ref: #239
  • Loading branch information
Ernest committed Jun 30, 2021
1 parent 4993792 commit 48df925
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,4 +330,10 @@ New in `2.6.0+`
- `{boolean}` isFocusing
- `{Function}` toggle

When using this slot, you often need to bind the `toggle` function to click event or else to enable open/close
functionality.

In addition, you may also have to prevent **mousedown** event by adding `@mousedown.prevent` to prevent default
behavior (fire focus event). See more details [here](https://github.com/iendeavor/vue-next-select/issues/239).

### loading

0 comments on commit 48df925

Please sign in to comment.