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

@ -152,12 +152,13 @@
$: value = inputValue;
</script>
<svelte:body
<svelte:window
on:click="{({ target }) => {
if (open && ref && !ref.contains(target)) {
open = false;
}
}}" />
}}"
/>
<div class:bx--list-box__wrapper="{true}">
{#if titleText}