handle keys

This commit is contained in:
Evan Almloff committed 2022-05-27 16:49:32 -05:00
1 parent 94169083f5
commit cef2f52058
2 files changed
+25 -9

No files matched your search

+2 -1
View File
@@ -22,7 +22,7 @@ fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
width: "100%",
height: "100%",
height: "500px",
onclick: move |_| {
count.modify(|count| *count + 10);
},
@@ -34,6 +34,7 @@ fn app(cx: Scope) -> Element {
height: "50%",
textarea {
width: "90%",
key: "1",
value: {
if rsx_code.get().is_none() {
let rsx_text_index: RsxTextIndex = cx.consume_context().unwrap();