fix: uninitialized binding, close #674

This commit is contained in:
Xylight committed 2025-10-18 10:09:18 -07:00
1 parent 3b42fb61f9
commit 881afed2ae
2 files changed
+9 -6

No files matched your search

+3 -3
View File
@@ -92,7 +92,7 @@
tools?: boolean
disabled?: boolean
rows?: number
beforePreview?: (input: string) => string
beforePreview?: (input?: string) => string
previewing?: boolean
class?: ClassValue
customLabel?: import('svelte').Snippet
@@ -101,14 +101,14 @@
let {
images = true,
value = $bindable(''),
value = $bindable(),
label = undefined,
previewButton = true,
tools = true,
disabled = false,
rows = 2,
// should be preprocess instead
beforePreview = (input) => input,
beforePreview = (input) => input ?? '',
previewing = $bindable(false),
class: clazz = '',
customLabel,