We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce7c0d commit 44b4ab7Copy full SHA for 44b4ab7
2 files changed
code-editor/src/lib.rs
@@ -193,9 +193,9 @@ pub fn CodeEditor(props: CodeEditorProps) -> Element {
193
"aria-multiline": "true",
194
"aria-readonly": readonly,
195
placeholder: props.placeholder,
196
- value: textarea_value,
197
wrap: "off",
198
..input_attributes,
+ "{textarea_value}"
199
}
200
201
examples/live-input/src/main.rs
@@ -26,8 +26,8 @@ fn App() -> Element {
26
textarea {
27
class: "code-input",
28
spellcheck: false,
29
- value: "{source}",
30
oninput: move |event| source.set(event.value()),
+ "{source}"
31
32
33
section { class: "preview-pane",
0 commit comments