Skip to content

Commit 7af57d3

Browse files
Update pagination.js
1 parent 5df88cd commit 7af57d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/pagination/src/pagination.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default {
252252
const num = parseInt(value, 10);
253253
if (!isNaN(num)) {
254254
if (num < 1) {
255-
this.$refs.input.$el.querySelector('input').value = 1;
255+
this.$refs.input.setCurrentValue(1);
256256
} else {
257257
this.reassignMaxValue(value);
258258
}
@@ -261,8 +261,7 @@ export default {
261261
reassignMaxValue(value) {
262262
var internalPageCount = this.$parent.internalPageCount;
263263
if (+value > internalPageCount) {
264-
this.$refs.input.$el.querySelector('input').value = internalPageCount;
265-
this.$refs.input.currentValue = internalPageCount;
264+
this.$refs.input.setCurrentValue(internalPageCount);
266265
}
267266
}
268267
},

0 commit comments

Comments
 (0)