mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(combo-fix): dont re-focus listbox if relatedTarget is input/select/textarea
This commit is contained in:
parent
66a3fd10c2
commit
5178ea4184
1 changed files with 1 additions and 0 deletions
|
@ -238,6 +238,7 @@
|
|||
on:blur="{({ relatedTarget }) => {
|
||||
if (!open || !relatedTarget) return;
|
||||
if (
|
||||
!['INPUT', 'SELECT', 'TEXTAREA'].includes(relatedTarget.tagName) &&
|
||||
relatedTarget.getAttribute('role') !== 'button' &&
|
||||
relatedTarget.getAttribute('role') !== 'searchbox'
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue