mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 12:49:20 +00:00
fix(multi-select): dispatch blur event for non-filterable MultiSelect
Fixes #1076
This commit is contained in:
parent
1939e4328d
commit
5aba9498aa
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
<script>
|
||||
/**
|
||||
* @event {FocusEvent | CustomEvent<FocusEvent>} blur
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {any} MultiSelectItemId
|
||||
* @typedef {string} MultiSelectItemText
|
||||
|
@ -337,6 +341,9 @@
|
|||
if (inputRef) inputRef.focus();
|
||||
}
|
||||
}}"
|
||||
on:blur="{(e) => {
|
||||
if (!filterable) dispatch('blur', e);
|
||||
}}"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
translateWithId="{translateWithId}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue