sets ignoreClickOutside to each side panel

This commit is contained in:
mikesealey 2024-04-18 12:11:45 +01:00
parent 6c38d32549
commit 088c210de8
2 changed files with 5 additions and 4 deletions

View File

@ -76,7 +76,7 @@
$: autoCloseSidePanel =
!$builderStore.inBuilder &&
$sidePanelStore.open &&
$sidePanelStore.ignoreClicksOutside
!$sidePanelStore.ignoreClicksOutside
$: screenId = $builderStore.inBuilder
? `${$builderStore.screen?._id}-screen`
: "screen"

View File

@ -29,9 +29,9 @@
}
}
$: {
sidePanelStore.actions.setIgnoreClicksOutside(ignoreClicksOutside)
}
// $: {
// }
// Derive visibility
$: open = $sidePanelStore.contentId === $component.id
@ -43,6 +43,7 @@
let renderKey = null
$: {
if (open) {
sidePanelStore.actions.setIgnoreClicksOutside(ignoreClicksOutside)
renderKey = Math.random()
}
}