From 160b32a9b7ea74e2914a43dac879a4b0255665b1 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Thu, 12 Dec 2024 11:59:53 +0100 Subject: [PATCH] fix: minor fix for submitting mutation payload --- .../utility/form-tab/DFormTabGroups.vue | 4 ++++ .../core/query-criteria/MQueryCriteriaModal.vue | 2 +- .../components/core/search/MSearchForm.vue | 15 +++++++++------ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/packages/core/src/components/utility/form-tab/DFormTabGroups.vue b/packages/core/src/components/utility/form-tab/DFormTabGroups.vue index f3358605..d8313baf 100644 --- a/packages/core/src/components/utility/form-tab/DFormTabGroups.vue +++ b/packages/core/src/components/utility/form-tab/DFormTabGroups.vue @@ -98,6 +98,8 @@ export default defineComponent({ items.value[index].label = props.label; } + emit('update:modelValue', items.value); + return; } @@ -111,6 +113,8 @@ export default defineComponent({ const nextIndex = index - 1; currentIndex.value = nextIndex < 0 ? 0 : nextIndex; + + emit('update:modelValue', items.value); }; const handleSaved = (data: FormTab) => { diff --git a/packages/mtb/src/runtime/components/core/query-criteria/MQueryCriteriaModal.vue b/packages/mtb/src/runtime/components/core/query-criteria/MQueryCriteriaModal.vue index be4cd10a..bc4fe3bb 100644 --- a/packages/mtb/src/runtime/components/core/query-criteria/MQueryCriteriaModal.vue +++ b/packages/mtb/src/runtime/components/core/query-criteria/MQueryCriteriaModal.vue @@ -62,7 +62,7 @@ export default defineComponent({