Skip to content

Commit

Permalink
Pagination: input bug
Browse files Browse the repository at this point in the history
currentValue in input component's data object didn't refresh when changeHandle emited
  • Loading branch information
mengro authored Jun 13, 2018
1 parent 671c42c commit 5df88cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/pagination/src/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ export default {
}
},
reassignMaxValue(value) {
if (+value > this.$parent.internalPageCount) {
this.$refs.input.$el.querySelector('input').value = this.$parent.internalPageCount;
var internalPageCount = this.$parent.internalPageCount;
if (+value > internalPageCount) {
this.$refs.input.$el.querySelector('input').value = internalPageCount;
this.$refs.input.currentValue = internalPageCount;
}
}
},
Expand Down

0 comments on commit 5df88cd

Please sign in to comment.