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,11 +165,13 @@
<svelte:window <svelte:window
on:mousedown="{({ target }) => { on:mousedown="{({ target }) => {
if (open && target.contains(refTooltip)) { if (open) {
if (refIcon) { if (target.contains(refTooltip)) {
refIcon.focus(); if (refIcon) {
} else if (ref) { refIcon.focus();
ref.focus(); } else if (ref) {
ref.focus();
}
} }
open = false; open = false;