Fix the login form example
This commit is contained in:
1 parent
51b62dd33a
commit
f7017fac2e
1 file changed
-1
@@ -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 {}
|
||||||
|
|||||||
Reference in new issue
Block a user