mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(multi-select): close menu when blurring the last filterable option
This commit is contained in:
parent
dd32a7e8ec
commit
2fa069a678
2 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,7 @@
|
|||
on:change="{() => {
|
||||
checked = !checked;
|
||||
}}"
|
||||
on:blur
|
||||
/>
|
||||
<label for="{id}" title="{title}" class:bx--checkbox-label="{true}">
|
||||
<span
|
||||
|
|
|
@ -453,6 +453,9 @@
|
|||
labelText="{itemToString(item)}"
|
||||
checked="{item.checked}"
|
||||
disabled="{disabled}"
|
||||
on:blur="{() => {
|
||||
if (i === filteredItems.length - 1) open = false;
|
||||
}}"
|
||||
/>
|
||||
</ListBoxMenuItem>
|
||||
{/each}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue