Skip to content

Commit

Permalink
Corrige le changement d'ordre des pages (#809)
Browse files Browse the repository at this point in the history
* force emit pages model in settings form

* fix types

* update changelog
  • Loading branch information
bellangerq authored Oct 9, 2024
1 parent e351710 commit bb8a169
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Tous les changements notables de Ara sont documentés ici avec leur date, leur c

### Corrections 🐛

- Corrige la mise à jour de l’ordre des pages quand les 2 pages ne sont pas adjacentes ([#809](https://github.com/DISIC/Ara/pull/809))
- Corrige l’application de l'attribut `autocomplete` sur le champ "email" du formulaire de connexion ([#808](https://github.com/DISIC/Ara/pull/808))

## 05/09/2024
Expand Down
6 changes: 4 additions & 2 deletions confiture-web-app/src/components/audit/PagesSample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const props = defineProps<{
modelValue: Omit<AuditPage, "id" | "order">[];
}>();
defineEmits<{
(e: "update:modelValue", payload: Omit<AuditPage, "id">[]): void;
const emit = defineEmits<{
(e: "update:modelValue", payload: Omit<AuditPage, "id" | "order">[]): void;
}>();
// Allow parent to focus last field
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 bb8a169

Please sign in to comment.