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>
|
<script>
|
||||||
|
/**
|
||||||
|
* @event {FocusEvent | CustomEvent<FocusEvent>} blur
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {any} MultiSelectItemId
|
* @typedef {any} MultiSelectItemId
|
||||||
* @typedef {string} MultiSelectItemText
|
* @typedef {string} MultiSelectItemText
|
||||||
|
@ -337,6 +341,9 @@
|
||||||
if (inputRef) inputRef.focus();
|
if (inputRef) inputRef.focus();
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
|
on:blur="{(e) => {
|
||||||
|
if (!filterable) dispatch('blur', e);
|
||||||
|
}}"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
translateWithId="{translateWithId}"
|
translateWithId="{translateWithId}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue