Exit editable form state when pressing "Cancel"

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-09-27 15:00:10 +02:00
parent 9b8a9a46dd
commit 47a9d2af71
+1
View File
@@ -109,6 +109,7 @@
const validate = (event: Event) => dispatch("validate", check(event));
const cancel = () => {
formFields = cloneDeep(fields);
dispatch("cancel");
};
</script>