From f838b9cbfc3aefacb2c6532d59112ae8188f1305 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Mon, 8 Jan 2024 13:27:01 -0500 Subject: [PATCH] Prevent form from submitting when save is clicked --- src/common/dialog/RevisionsDialog.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/dialog/RevisionsDialog.svelte b/src/common/dialog/RevisionsDialog.svelte index be5e6bc4e..4981c3e82 100644 --- a/src/common/dialog/RevisionsDialog.svelte +++ b/src/common/dialog/RevisionsDialog.svelte @@ -99,7 +99,11 @@ {$_("dialogRevisionsDialog.controlLabel")}
- { + event.preventDefault(); + onSave(enabled); + }}>{$_("dialog.save")}