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 123ee99 commit c4ff0cbCopy full SHA for c4ff0cb
resources/js/composables/usePaginatedData.ts
@@ -125,15 +125,19 @@ export function usePaginatedData(
125
126
pagination.value.rows = event.rows;
127
128
- fetchData().then(() => {
129
- scrollToTop();
+ fetchData({
+ onFinish: () => {
130
+ scrollToTop();
131
+ },
132
});
133
}
134
135
function filter(): void {
136
pagination.value.page = 1;
137
138
139
140
141
142
143
0 commit comments