-
-
Notifications
You must be signed in to change notification settings - Fork 913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass form values as a hashmap on oninput
/onsubmit
#147
Conversation
examples/form.rs
Outdated
div { | ||
h1 { "Form" } | ||
form { | ||
oninput: move |ev| println!("{:?}", ev.values), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why use the oninput
event? I think there have a special event: onsubmit
for form.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just updated to showcase how both onsubmit and oninput support "values"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!
Fix spelling: "inhert" -> "inherit"
This PR closes #117 , adding the "values" field to oninput/onsubmit