form prevent_default
This commit is contained in:
1 parent
cd5242bfc4
commit
45ebcf6f0e
1 file changed
+6
@@ -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! {
|
builder_constructors! {
|
||||||
// SVG components
|
// SVG components
|
||||||
/// Build a
|
/// Build a
|
||||||
|
|||||||
Reference in new issue
Block a user