fix: close overlays on window click (#761)

This commit is contained in:
Phil Mayer 2021-07-22 12:44:23 -04:00 committed by GitHub
commit af26bdb10a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 16 deletions

View file

@ -163,7 +163,7 @@
};
</script>
<svelte:body
<svelte:window
on:mousedown="{({ target }) => {
if (open && target.contains(refTooltip)) {
if (refIcon) {
@ -174,7 +174,8 @@
open = false;
}
}}" />
}}"
/>
<div
{...$$restProps}