mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
fix(combo-box): focus input if related target attribute is not "searchbox"
This commit is contained in:
parent
8da003c799
commit
c6c37adc15
1 changed files with 2 additions and 2 deletions
|
@ -222,8 +222,8 @@
|
|||
on:focus
|
||||
on:blur
|
||||
on:blur="{({ relatedTarget }) => {
|
||||
if (!open) return;
|
||||
if (relatedTarget && relatedTarget.getAttribute('role') !== 'button') {
|
||||
if (!open || !relatedTarget) return;
|
||||
if (relatedTarget.getAttribute('role') !== 'button' && relatedTarget.getAttribute('role') !== 'searchbox') {
|
||||
ref.focus();
|
||||
}
|
||||
}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue