mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(multi-select): non-filterable MultiSelect
should dispatch a blur event (#1080)
The non-filterable `MultiSelect` is missing a `blur` event. Implementation-wise, we have to dispatch it and include the event as the `detail`. Otherwise, the filterable variant will dispatch "blur" twice because it has both a button and input. The filterable `MultiSelect` continues to forward the blur event to the input.
This commit is contained in:
parent
1939e4328d
commit
63f52b4683
7 changed files with 23 additions and 9 deletions
|
@ -6776,6 +6776,11 @@
|
|||
],
|
||||
"slots": [],
|
||||
"events": [
|
||||
{
|
||||
"type": "dispatched",
|
||||
"name": "blur",
|
||||
"detail": "FocusEvent | CustomEvent<FocusEvent>"
|
||||
},
|
||||
{
|
||||
"type": "dispatched",
|
||||
"name": "select",
|
||||
|
@ -6784,8 +6789,7 @@
|
|||
{ "type": "dispatched", "name": "clear", "detail": "any" },
|
||||
{ "type": "forwarded", "name": "keydown", "element": "input" },
|
||||
{ "type": "forwarded", "name": "keyup", "element": "input" },
|
||||
{ "type": "forwarded", "name": "focus", "element": "input" },
|
||||
{ "type": "forwarded", "name": "blur", "element": "input" }
|
||||
{ "type": "forwarded", "name": "focus", "element": "input" }
|
||||
],
|
||||
"typedefs": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue