sets ignoreClickOutside to each side panel
This commit is contained in:
parent
6c38d32549
commit
088c210de8
|
@ -76,7 +76,7 @@
|
||||||
$: autoCloseSidePanel =
|
$: autoCloseSidePanel =
|
||||||
!$builderStore.inBuilder &&
|
!$builderStore.inBuilder &&
|
||||||
$sidePanelStore.open &&
|
$sidePanelStore.open &&
|
||||||
$sidePanelStore.ignoreClicksOutside
|
!$sidePanelStore.ignoreClicksOutside
|
||||||
$: screenId = $builderStore.inBuilder
|
$: screenId = $builderStore.inBuilder
|
||||||
? `${$builderStore.screen?._id}-screen`
|
? `${$builderStore.screen?._id}-screen`
|
||||||
: "screen"
|
: "screen"
|
||||||
|
|
|
@ -29,9 +29,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$: {
|
// $: {
|
||||||
sidePanelStore.actions.setIgnoreClicksOutside(ignoreClicksOutside)
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Derive visibility
|
// Derive visibility
|
||||||
$: open = $sidePanelStore.contentId === $component.id
|
$: open = $sidePanelStore.contentId === $component.id
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
let renderKey = null
|
let renderKey = null
|
||||||
$: {
|
$: {
|
||||||
if (open) {
|
if (open) {
|
||||||
|
sidePanelStore.actions.setIgnoreClicksOutside(ignoreClicksOutside)
|
||||||
renderKey = Math.random()
|
renderKey = Math.random()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue