We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c3685 commit aefb058Copy full SHA for aefb058
adminforth/spa/src/afcl/Table.vue
@@ -211,7 +211,12 @@
211
});
212
213
watch([() => currentSortField.value, () => currentSortDirection.value], () => {
214
- refresh();
+ const needsPageReset = currentPage.value !== 1;
215
+ if (needsPageReset) {
216
+ currentPage.value = 1;
217
+ } else {
218
+ refresh();
219
+ }
220
emit('update:sortField', currentSortField.value);
221
emit('update:sortDirection', currentSortField.value ? currentSortDirection.value : undefined);
222
const field = currentSortField.value ?? null;
0 commit comments