From a3a18c581f9f097db744031b5c9e1206afef1745 Mon Sep 17 00:00:00 2001 From: Marius Heine Date: Tue, 19 Nov 2024 00:19:30 +0100 Subject: [PATCH 1/5] fix clearing values and validity flag when nodes are not shown anymore --- .../former/src/components/EditComponent.vue | 4 -- packages/former/src/components/FormNode.vue | 56 +++++++++++++++---- 2 files changed, 44 insertions(+), 16 deletions(-) diff --git a/packages/former/src/components/EditComponent.vue b/packages/former/src/components/EditComponent.vue index 6ebbcf4..7c76b45 100644 --- a/packages/former/src/components/EditComponent.vue +++ b/packages/former/src/components/EditComponent.vue @@ -41,10 +41,6 @@ const formId = inject('formId'); function startDrag(e: DragEvent, nodeId: string) { setDragEventData(e, formId.value, 'node_id', nodeId); } - -onBeforeUnmount(() => { - modelValue.value = undefined; -});