From fdbb311b99bf430cc90c3111a6ed21706bb7490d Mon Sep 17 00:00:00 2001 From: Romain Hamel Date: Mon, 23 Jun 2025 10:33:08 +0200 Subject: [PATCH] fix(devtools): trigger reactivity for array mutations in ArrayInput --- packages/devtools/app/components/inputs/ArrayInput.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/devtools/app/components/inputs/ArrayInput.vue b/packages/devtools/app/components/inputs/ArrayInput.vue index e8477b18..ff5b07d0 100644 --- a/packages/devtools/app/components/inputs/ArrayInput.vue +++ b/packages/devtools/app/components/inputs/ArrayInput.vue @@ -8,6 +8,7 @@ const modelValue = defineModel>() function removeArrayItem(index: number) { if (!modelValue.value) return modelValue.value.splice(index, 1) + modelValue.value = [...modelValue.value] } function addArrayItem() { @@ -15,6 +16,7 @@ function addArrayItem() { modelValue.value = [null] } else { modelValue.value.push(null) + modelValue.value = [...modelValue.value] } openedItem.value = modelValue.value?.length - 1 }