mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
parent
2aeeb728a2
commit
51cd4ec342
1 changed files with 7 additions and 5 deletions
|
@ -165,12 +165,14 @@
|
|||
|
||||
<svelte:window
|
||||
on:mousedown="{({ target }) => {
|
||||
if (open && target.contains(refTooltip)) {
|
||||
if (open) {
|
||||
if (target.contains(refTooltip)) {
|
||||
if (refIcon) {
|
||||
refIcon.focus();
|
||||
} else if (ref) {
|
||||
ref.focus();
|
||||
}
|
||||
}
|
||||
|
||||
open = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue