Merge pull request #1327 from Demonthos/fix-login-form-example

Fix the login form example
This commit is contained in:
Jonathan Kelley 2023-08-11 13:03:26 -07:00 committed by GitHub
commit 8e08d721f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,6 @@ fn app(cx: Scope) -> Element {
h1 { "Login" }
form {
onsubmit: onsubmit,
prevent_default: "onsubmit", // Prevent the default behavior of <form> to post
input { r#type: "text", id: "username", name: "username" }
label { "Username" }
br {}