Skip to content

Commit

Permalink
Merge pull request #35 from HC200ok/Fix/watch-prop-items
Browse files Browse the repository at this point in the history
Fix: watch props item only in client mode
  • Loading branch information
HC200ok authored Jun 18, 2022
2 parents 74f41ac + 48ff675 commit f271b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "HC200ok",
"description": "A customizable and easy-to-use data table component made with Vue.js 3.x.",
"private": false,
"version": "1.2.8",
"version": "1.2.9",
"types": "./types/main.d.ts",
"license": "MIT",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ const currentPaginationNumber = ref(isServerSideMode.value ? props.serverOptions
const { items } = toRefs(props);
watch(items, () => {
currentPaginationNumber.value = 1;
if (!isServerSideMode.value) currentPaginationNumber.value = 1;
}, { deep: true });
// rows per page
Expand Down

0 comments on commit f271b5e

Please sign in to comment.