fix todomvc

This commit is contained in:
Evan Almloff committed 2023-10-31 13:56:27 -05:00
1 parent 57dd56c8a4
commit ff7aca7617
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ pub fn TodoHeader<'a>(cx: Scope<'a, TodoHeaderProps<'a>>) -> Element {
value: "{draft}",
autofocus: "true",
oninput: move |evt| {
draft.set(evt.value.clone());
draft.set(evt.value().clone());
},
onkeydown: move |evt| {
if evt.key() == Key::Enter && !draft.is_empty() {