Browse Source

fix todomvc

Evan Almloff 1 năm trước cách đây
mục cha
commit
ff7aca7617
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/todomvc.rs

+ 1 - 1
examples/todomvc.rs

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