summaryrefslogtreecommitdiffstats
path: root/examples/text_input
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 04:13:36 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 04:19:45 +0200
commite6a93e960c3ac71a74f11555fd2d225c185f6e8c (patch)
tree3bda6043c7b2840f3414e9e5fbf7e869077f0e27 /examples/text_input
parentf10e936f00d4b83dcacfdebd2727b1a5cd1add95 (diff)
downloadiced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.tar.gz
iced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.tar.bz2
iced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.zip
Rename `on_change` to `on_input` for `TextInput`
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);