Skip to content

Commit a624010

Browse files
authored
Merge pull request #33 from SafAlhaji/onTableLength-issue
Fix onTableLength assigning currentPerPage as string
2 parents c282572 + e73d5fe commit a624010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
},
153153
154154
onTableLength: function(e) {
155-
this.currentPerPage = e.target.value;
155+
this.currentPerPage = parseInt(e.target.value);
156156
},
157157
158158
sort: function(index) {

0 commit comments

Comments
 (0)