瀏覽代碼

Fix the login form example

Evan Almloff 1 年之前
父節點
當前提交
f7017fac2e
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      examples/login_form.rs

+ 0 - 1
examples/login_form.rs

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