Rename on_change to on_input for TextInput
This commit is contained in:
parent
f10e936f00
commit
e6a93e960c
12 changed files with 205 additions and 212 deletions
|
|
@ -134,7 +134,7 @@ impl Application for App {
|
|||
column![
|
||||
text("Email").size(12),
|
||||
text_input("abc@123.com", &self.email,)
|
||||
.on_change(Message::Email)
|
||||
.on_input(Message::Email)
|
||||
.on_submit(Message::Submit)
|
||||
.padding(5),
|
||||
]
|
||||
|
|
@ -142,7 +142,7 @@ impl Application for App {
|
|||
column![
|
||||
text("Password").size(12),
|
||||
text_input("", &self.password)
|
||||
.on_change(Message::Password)
|
||||
.on_input(Message::Password)
|
||||
.on_submit(Message::Submit)
|
||||
.password()
|
||||
.padding(5),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue