1
0
Fork 0
mirror of synced 2024-07-02 04:50:44 +12:00

removes unecessary on-sidepanel-open actions feature.

This commit is contained in:
mikesealey 2024-04-12 13:24:21 +01:00
parent 859bda0a51
commit 0514641f04
2 changed files with 6 additions and 7 deletions

View file

@ -6729,7 +6729,7 @@
{
"type": "boolean",
"key": "clickOutsideToClose",
"label": "Click away to close",
"label": "Click outside to close",
"defaultValue": true
},
{

View file

@ -73,7 +73,10 @@
$context.device.width,
$context.device.height
)
$: autoCloseSidePanel = !$builderStore.inBuilder && $sidePanelStore.open
$: autoCloseSidePanel =
!$builderStore.inBuilder &&
$sidePanelStore.open &&
$sidePanelStore.clickOutsideToClose
$: screenId = $builderStore.inBuilder
? `${$builderStore.screen?._id}-screen`
: "screen"
@ -317,11 +320,7 @@
id="side-panel-container"
class:open={$sidePanelStore.open}
use:clickOutside={{
callback:
$sidePanelStore.clickOutsideToClose && autoCloseSidePanel
? sidePanelStore.actions.close
: null,
callback: autoCloseSidePanel ? sidePanelStore.actions.close : null,
allowedType: "mousedown",
}}
class:builder={$builderStore.inBuilder}