Skip to content

Commit

Permalink
Update pagination.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder authored Jun 15, 2018
1 parent 5df88cd commit 7af57d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/pagination/src/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default {
const num = parseInt(value, 10);
if (!isNaN(num)) {
if (num < 1) {
this.$refs.input.$el.querySelector('input').value = 1;
this.$refs.input.setCurrentValue(1);
} else {
this.reassignMaxValue(value);
}
Expand All @@ -261,8 +261,7 @@ export default {
reassignMaxValue(value) {
var internalPageCount = this.$parent.internalPageCount;
if (+value > internalPageCount) {
this.$refs.input.$el.querySelector('input').value = internalPageCount;
this.$refs.input.currentValue = internalPageCount;
this.$refs.input.setCurrentValue(internalPageCount);
}
}
},
Expand Down

0 comments on commit 7af57d3

Please sign in to comment.