浏览代码

fix: remove preventdefault on form

Jonathan Kelley 3 年之前
父节点
当前提交
aa60971c5c
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      packages/html/src/elements.rs

+ 0 - 6
packages/html/src/elements.rs

@@ -1101,12 +1101,6 @@ impl label {
     }
 }
 
-impl form {
-    pub fn prevent_default<'a>(&self, cx: NodeFactory<'a>, val: Arguments) -> Attribute<'a> {
-        cx.attr("dioxus-prevent-default", val, None, false)
-    }
-}
-
 builder_constructors! {
     // SVG components
     /// Build a