app: Don't use prevent_default: "onsubmit"
See dioxus#1297
This commit is contained in:
parent
ede98561b5
commit
d3f89a8757
3 changed files with 1 additions and 3 deletions
|
|
@ -154,7 +154,6 @@ pub fn FormModal<'a>(cx: Scope<'a, FormModalProps<'a>>) -> Element {
|
|||
ModalBody {
|
||||
form {
|
||||
id: "{cx.props.id}Form",
|
||||
prevent_default: "onsubmit",
|
||||
onsubmit: move |ev| cx.props.on_submit.call(ev),
|
||||
&cx.props.children
|
||||
}
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ pub fn Ingredients(cx: Scope) -> Element {
|
|||
cx.render(rsx! {
|
||||
div { class: "d-flex align-items-center justify-content-center w-100",
|
||||
div { class: "container text-center rounded border pt-2 m-2",
|
||||
form { prevent_default: "onsubmit", onsubmit: add_ingredient,
|
||||
form { onsubmit: add_ingredient,
|
||||
ErrorView { error: error }
|
||||
div { class: "form-floating",
|
||||
input {
|
||||
|
|
|
|||
|
|
@ -253,7 +253,6 @@ fn Login(cx: Scope) -> Element {
|
|||
link { href: "/login.css", rel: "stylesheet" }
|
||||
form {
|
||||
onsubmit: on_submit,
|
||||
prevent_default: "onsubmit",
|
||||
class: "form-signin w-100 m-auto text-center",
|
||||
h1 { class: "h3 mb-3", "Please log in" }
|
||||
ErrorView { error: error }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue