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:
@@ -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 = [],
|
||||
|
||||
Reference in New Issue
Block a user