fix todomvc

This commit is contained in:
Evan Almloff 2023-10-31 13:56:27 -05:00
parent 57dd56c8a4
commit ff7aca7617

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() {