mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(HeaderAction): panel closes when user clicks inside the browser window, not just inside the page body
This commit is contained in:
parent
2a63aa7729
commit
4e2b675866
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@
|
|||
}
|
||||
</style>
|
||||
|
||||
<svelte:body
|
||||
<svelte:window
|
||||
on:click="{({ target }) => {
|
||||
if (isOpen && !ref.contains(target) && !refPanel.contains(target)) {
|
||||
isOpen = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue