diff --git a/confiture-web-app/src/components/audit/PagesSample.vue b/confiture-web-app/src/components/audit/PagesSample.vue index 13af0fd5..0e579946 100644 --- a/confiture-web-app/src/components/audit/PagesSample.vue +++ b/confiture-web-app/src/components/audit/PagesSample.vue @@ -10,7 +10,7 @@ const props = defineProps<{ modelValue: Omit[]; }>(); -defineEmits<{ +const emit = defineEmits<{ (e: "update:modelValue", payload: Omit[]): void; }>(); @@ -94,6 +94,8 @@ function updatePageOrder(startIndex: number, endIndex: number) { ]; } + emit("update:modelValue", pages.value); + // Focus `endIndex` select pageOrderSelectRefs.value?.at(endIndex)?.focus();