This commit is contained in:
Daniel Miedzik 2021-10-21 17:26:47 +02:00 committed by GitHub
commit 51cd4ec342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }