fix drawer issues

This commit is contained in:
Ruben Fiszel
2025-06-30 08:00:14 +00:00
parent 53f615ca0b
commit b180ff1e56
2 changed files with 15 additions and 1 deletions
@@ -114,6 +114,16 @@
stepsState: Record<string, stepState>
}
noInitial?: boolean
onSaveInitial?: ({ path, id }: { path: string; id: string }) => void
onSaveDraft?: ({
path,
savedAtNewPath,
newFlow
}: {
path: string
savedAtNewPath: boolean
newFlow: boolean
}) => void
}
let {
@@ -21,7 +21,7 @@
}
let {
open = $bindable(false),
open = $bindable(undefined),
duration = 0.3,
placement = 'right',
size = '600px',
@@ -35,6 +35,10 @@
children
}: Props = $props()
if (open === undefined) {
open = false
}
let disposable: Disposable | undefined = $state(undefined)
let durationMs = $derived(duration * 1000)