form prevent_default
@@ -1106,6 +1106,12 @@ impl a {
}
}
+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
