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