mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
docs(search): "clear" is dispatched when pressing "Escape"
This commit is contained in:
parent
872f90cc37
commit
e066a65f42
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ The `Search` component size is extra-large by default. There are [large](#large-
|
||||||
|
|
||||||
### on:clear
|
### on:clear
|
||||||
|
|
||||||
The "clear" event is dispatched when clicking the "X" button in the search input element.
|
The "clear" event is dispatched when clicking the "X" button or when pressing the "Escape" key.
|
||||||
|
|
||||||
<Search value="Cloud functions" on:clear={() => console.log('clear')}/>
|
<Search value="Cloud functions" on:clear={() => console.log('clear')}/>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue