Skip to content

Commit 44b4ab7

Browse files
committed
fix textarea rendering
1 parent cce7c0d commit 44b4ab7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

code-editor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ pub fn CodeEditor(props: CodeEditorProps) -> Element {
193193
"aria-multiline": "true",
194194
"aria-readonly": readonly,
195195
placeholder: props.placeholder,
196-
value: textarea_value,
197196
wrap: "off",
198197
..input_attributes,
198+
"{textarea_value}"
199199
}
200200
}
201201
}

examples/live-input/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ fn App() -> Element {
2626
textarea {
2727
class: "code-input",
2828
spellcheck: false,
29-
value: "{source}",
3029
oninput: move |event| source.set(event.value()),
30+
"{source}"
3131
}
3232
}
3333
section { class: "preview-pane",

0 commit comments

Comments
 (0)