mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +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
2
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
2
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
|
@ -212,6 +212,7 @@ export interface MultiSelectProps
|
|||
export default class MultiSelect extends SvelteComponentTyped<
|
||||
MultiSelectProps,
|
||||
{
|
||||
blur: FocusEvent | CustomEvent<FocusEvent>;
|
||||
select: CustomEvent<{
|
||||
selectedIds: MultiSelectItemId[];
|
||||
selected: MultiSelectItem[];
|
||||
|
@ -221,7 +222,6 @@ export default class MultiSelect extends SvelteComponentTyped<
|
|||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
blur: WindowEventMap["blur"];
|
||||
},
|
||||
{}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue