mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
fix(multi-select): unblock focus when blurring input #635
This commit is contained in:
parent
fefd43dd8c
commit
031e2ee79f
1 changed files with 5 additions and 1 deletions
|
@ -394,7 +394,11 @@
|
|||
on:blur="{({ relatedTarget }) => {
|
||||
if (
|
||||
relatedTarget &&
|
||||
relatedTarget.getAttribute('role') !== 'button'
|
||||
!['INPUT', 'SELECT', 'TEXTAREA'].includes(
|
||||
relatedTarget.tagName
|
||||
) &&
|
||||
relatedTarget.getAttribute('role') !== 'button' &&
|
||||
relatedTarget.getAttribute('role') !== 'searchbox'
|
||||
) {
|
||||
inputRef.focus();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue