mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 04:39:19 +00:00
fix(multi-select): MultiSelect should correctly lose focus
Fixes #848 Fixes #938 Fixes #1024
This commit is contained in:
parent
cbecfd41e2
commit
cdc96d5f86
1 changed files with 0 additions and 22 deletions
|
@ -338,16 +338,6 @@
|
|||
if (inputRef) inputRef.focus();
|
||||
}
|
||||
}}"
|
||||
on:blur="{({ relatedTarget }) => {
|
||||
if (
|
||||
relatedTarget &&
|
||||
!['INPUT', 'SELECT', 'TEXTAREA'].includes(relatedTarget.tagName) &&
|
||||
relatedTarget.getAttribute('role') !== 'button' &&
|
||||
relatedTarget.getAttribute('role') !== 'searchbox'
|
||||
) {
|
||||
fieldRef.focus();
|
||||
}
|
||||
}}"
|
||||
id="{id}"
|
||||
disabled="{disabled}"
|
||||
translateWithId="{translateWithId}"
|
||||
|
@ -422,18 +412,6 @@
|
|||
on:keyup
|
||||
on:focus
|
||||
on:blur
|
||||
on:blur="{({ relatedTarget }) => {
|
||||
if (
|
||||
relatedTarget &&
|
||||
!['INPUT', 'SELECT', 'TEXTAREA'].includes(
|
||||
relatedTarget.tagName
|
||||
) &&
|
||||
relatedTarget.getAttribute('role') !== 'button' &&
|
||||
relatedTarget.getAttribute('role') !== 'searchbox'
|
||||
) {
|
||||
inputRef.focus();
|
||||
}
|
||||
}}"
|
||||
disabled="{disabled}"
|
||||
placeholder="{placeholder}"
|
||||
id="{id}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue