adminforth 2.4.0-next.296 → 2.4.0-next.297

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -211,11 +211,12 @@
211
211
  });
212
212
 
213
213
  watch([() => currentSortField.value, () => currentSortDirection.value], () => {
214
- if (currentPage.value !== 1) currentPage.value = 1;
215
214
  refresh();
216
215
  emit('update:sortField', currentSortField.value);
217
216
  emit('update:sortDirection', currentSortField.value ? currentSortDirection.value : undefined);
218
- emit('sort-change', { field: currentSortField.value, direction: currentSortDirection.value });
217
+ const field = currentSortField.value ?? null;
218
+ const direction = currentSortField.value ? currentSortDirection.value : null;
219
+ emit('sort-change', { field, direction });
219
220
  }, { immediate: false });
220
221
 
221
222
  const totalPages = computed(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.4.0-next.296",
3
+ "version": "2.4.0-next.297",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",