Merge pull request #323 from weaseldotro/fix-appswitcher-ui-shell

fix(HeaderAction): panel closes when user clicks inside the browser window, not just inside the page body
This commit is contained in:
Eric Liu 2020-10-11 10:11:11 -07:00 committed by GitHub
commit b6c805e062
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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