fix(HeaderAction): panel closes when user clicks inside the browser window, not just inside the page body

This commit is contained in:
weaseldotro 2020-10-10 10:24:11 +03:00 committed by GitHub
commit 4e2b675866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@
}
</style>
<svelte:body
<svelte:window
on:click="{({ target }) => {
if (isOpen && !ref.contains(target) && !refPanel.contains(target)) {
isOpen = false;