summaryrefslogtreecommitdiffstats
path: root/examples/text_input
diff options
context:
space:
mode:
Diffstat (limited to 'examples/text_input')
-rw-r--r--examples/text_input/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/text_input/src/main.rs b/examples/text_input/src/main.rs
index 977b5099..418593f4 100644
--- a/examples/text_input/src/main.rs
+++ b/examples/text_input/src/main.rs
@@ -74,7 +74,7 @@ impl Application for Example {
let mut txt_input = text_input(placeholder, &self.data);
if self.text_edit_enabled {
- txt_input = txt_input.on_change(Message::TextInputChanged);
+ txt_input = txt_input.on_input(Message::TextInputChanged);
}
let btn = button("Enable/Disable").on_press(StartTimer);