Fix the login form example

This commit is contained in:
Evan Almloff 2023-08-08 15:45:09 -07:00
parent 51b62dd33a
commit f7017fac2e

View file

@ -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 {}