mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
parent
0ea3d9351e
commit
95c06a83b3
3 changed files with 36 additions and 14 deletions
|
@ -75,7 +75,7 @@
|
|||
}
|
||||
}}
|
||||
on:keydown|stopPropagation={(e) => {
|
||||
if (!disabled && e.key === "Enter") {
|
||||
if (!disabled && (e.key === "Enter" || e.key === " ")) {
|
||||
dispatch("clear", e);
|
||||
}
|
||||
}}
|
||||
|
@ -103,7 +103,7 @@
|
|||
}
|
||||
}}
|
||||
on:keydown|stopPropagation={(e) => {
|
||||
if (!disabled && e.key === "Enter") {
|
||||
if (!disabled && (e.key === "Enter" || e.key === " ")) {
|
||||
dispatch("clear", e);
|
||||
}
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue