fix: resolve Svelte 5 'props_invalid_value' error by removing defaults from $bindable props

Binding to an undefined value when a $bindable prop has a default fallback causes a runtime error in Svelte 5 runes mode. Defaults are now applied within the component logic.
This commit is contained in:
Scott Idem
2026-01-12 12:50:35 -05:00
parent bb964edfc5
commit 93dd8271eb
2 changed files with 15 additions and 7 deletions

View File

@@ -29,7 +29,7 @@
let {
content = 'test test test test',
new_content = $bindable(''),
new_content = $bindable(),
editorView = $bindable(), // Exposed for external control
theme_mode = 'light',
extensions = [],