mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
Fix the login form example
This commit is contained in:
parent
51b62dd33a
commit
f7017fac2e
1 changed files with 0 additions and 1 deletions
|
@ -35,7 +35,6 @@ fn app(cx: Scope) -> Element {
|
||||||
h1 { "Login" }
|
h1 { "Login" }
|
||||||
form {
|
form {
|
||||||
onsubmit: onsubmit,
|
onsubmit: onsubmit,
|
||||||
prevent_default: "onsubmit", // Prevent the default behavior of <form> to post
|
|
||||||
input { r#type: "text", id: "username", name: "username" }
|
input { r#type: "text", id: "username", name: "username" }
|
||||||
label { "Username" }
|
label { "Username" }
|
||||||
br {}
|
br {}
|
||||||
|
|
Loading…
Reference in a new issue