Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrige le changement d'ordre des pages #809

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading