From a770858ec5736b93c253a32e471a8bbd251dc2d4 Mon Sep 17 00:00:00 2001 From: Artem Makoven Date: Thu, 24 Nov 2022 21:12:13 +0900 Subject: [PATCH] Remove redundant set_value in todomvc example (#530) --- examples/todomvc/src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/todomvc/src/main.rs b/examples/todomvc/src/main.rs index 2eb1f91a..354fc825 100644 --- a/examples/todomvc/src/main.rs +++ b/examples/todomvc/src/main.rs @@ -254,13 +254,7 @@ pub fn Item(cx: Scope, todo: RcSignal) -> View { let event: KeyboardEvent = event.unchecked_into(); match event.key().as_str() { "Enter" => handle_blur(), - "Escape" => { - input_ref - .get::() - .unchecked_into::() - .set_value(&title()); - is_editing.set(false); - } + "Escape" => is_editing.set(false), _ => {} } };