mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
This commit is contained in:
parent
f42568d262
commit
16917997cd
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,7 @@ where
|
|||
// POST
|
||||
if method == "post" {
|
||||
ev.prevent_default();
|
||||
ev.stop_propagation();
|
||||
|
||||
let on_response = on_response.clone();
|
||||
spawn_local(async move {
|
||||
|
@ -144,6 +145,7 @@ where
|
|||
.is_ok()
|
||||
{
|
||||
ev.prevent_default();
|
||||
ev.stop_propagation();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -348,6 +350,7 @@ where
|
|||
}
|
||||
Ok(input) => {
|
||||
ev.prevent_default();
|
||||
ev.stop_propagation();
|
||||
multi_action.dispatch(input);
|
||||
if let Some(error) = error {
|
||||
error.set(None);
|
||||
|
|
Loading…
Reference in a new issue