Rename on_change to on_input for TextInput

This commit is contained in:
Héctor Ramón Jiménez 2023-04-12 04:13:36 +02:00
parent f10e936f00
commit e6a93e960c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
12 changed files with 205 additions and 212 deletions

View file

@ -120,14 +120,14 @@ impl Application for App {
subtitle(
"Title",
text_input("", &self.editing.title)
.on_change(Message::Title)
.on_input(Message::Title)
.on_submit(Message::Add)
.into()
),
subtitle(
"Message",
text_input("", &self.editing.body)
.on_change(Message::Body)
.on_input(Message::Body)
.on_submit(Message::Add)
.into()
),