Skip to content

Commit f271b5e

Browse files
authored
Merge pull request #35 from HC200ok/Fix/watch-prop-items
Fix: watch props item only in client mode
2 parents 74f41ac + 48ff675 commit f271b5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "HC200ok",
44
"description": "A customizable and easy-to-use data table component made with Vue.js 3.x.",
55
"private": false,
6-
"version": "1.2.8",
6+
"version": "1.2.9",
77
"types": "./types/main.d.ts",
88
"license": "MIT",
99
"files": [

src/components/DataTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ const currentPaginationNumber = ref(isServerSideMode.value ? props.serverOptions
550550
551551
const { items } = toRefs(props);
552552
watch(items, () => {
553-
currentPaginationNumber.value = 1;
553+
if (!isServerSideMode.value) currentPaginationNumber.value = 1;
554554
}, { deep: true });
555555
556556
// rows per page

0 commit comments

Comments
 (0)