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 5df88cd commit 7af57d3Copy full SHA for 7af57d3
packages/pagination/src/pagination.js
@@ -252,7 +252,7 @@ export default {
252
const num = parseInt(value, 10);
253
if (!isNaN(num)) {
254
if (num < 1) {
255
- this.$refs.input.$el.querySelector('input').value = 1;
+ this.$refs.input.setCurrentValue(1);
256
} else {
257
this.reassignMaxValue(value);
258
}
@@ -261,8 +261,7 @@ export default {
261
reassignMaxValue(value) {
262
var internalPageCount = this.$parent.internalPageCount;
263
if (+value > internalPageCount) {
264
- this.$refs.input.$el.querySelector('input').value = internalPageCount;
265
- this.$refs.input.currentValue = internalPageCount;
+ this.$refs.input.setCurrentValue(internalPageCount);
266
267
268
},
0 commit comments