1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

fixes typo, removes unused variables

This commit is contained in:
mikesealey 2024-04-11 15:42:19 +01:00
parent 3201eb5953
commit a7ec49613c
3 changed files with 6 additions and 13 deletions

View file

@ -7,11 +7,11 @@
export let narrower = false
export let noPadding = false
let sidePanelVisble = false
let sidePanelVisible = false
setContext("side-panel", {
open: () => (sidePanelVisble = true),
close: () => (sidePanelVisble = false),
open: () => (sidePanelVisible = true),
close: () => (sidePanelVisible = false),
})
</script>
@ -24,9 +24,9 @@
</div>
<div
id="side-panel"
class:visible={sidePanelVisble}
class:visible={sidePanelVisible}
use:clickOutside={() => {
sidePanelVisble = false
sidePanelVisible = false
}}
>
<slot name="side-panel" />

View file

@ -6505,7 +6505,7 @@
"type": "event",
"key": "sidePanelClose",
"label": "Side Panel Close",
"info": "Side panel actions configured here will run after the 'Open side panel' action runs, and are not capable of preventing or stopping it. Any form validation should therefore be done before that action if invoked, and not here."
"info": "Side panel actions configured here will run after the 'Open side panel' action runs, and are not capable of preventing or stopping it. Any form validation should therefore be done before that action is invoked, and not here."
}
]
},

View file

@ -5,9 +5,6 @@
const { styleable, sidePanelStore, builderStore, dndIsDragging } =
getContext("sdk")
let handlingSidePanelOpen
let handlingSidePanelClose
export let sidePanelOpen
export let sidePanelClose
export let clickOutsideToClose
@ -52,19 +49,15 @@
}
const handleSidePanelOpen = async () => {
handlingSidePanelOpen = true
if (sidePanelOpen) {
await sidePanelOpen()
}
handlingSidePanelOpen = false
}
const handleSidePanelClose = async () => {
handlingSidePanelClose = true
if (sidePanelClose) {
await sidePanelClose()
}
handlingSidePanelOpen = false
}
const showInSidePanel = (el, visible) => {