Skip to content

Commit

Permalink
force emit pages model in settings form
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq committed Sep 27, 2024
1 parent bbdd3f8 commit 99dd98d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion confiture-web-app/src/components/audit/PagesSample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const props = defineProps<{
modelValue: Omit<AuditPage, "id" | "order">[];
}>();
defineEmits<{
const emit = defineEmits<{
(e: "update:modelValue", payload: Omit<AuditPage, "id">[]): void;
}>();
Expand Down Expand Up @@ -94,6 +94,8 @@ function updatePageOrder(startIndex: number, endIndex: number) {
];
}
emit("update:modelValue", pages.value);
// Focus `endIndex` select
pageOrderSelectRefs.value?.at(endIndex)?.focus();
Expand Down

0 comments on commit 99dd98d

Please sign in to comment.