Commit df765427 authored by Jikkai Xiao's avatar Jikkai Xiao Committed by GitHub

Pagination: assign 1 to default page count (#12525)

parent ec6cac42
...@@ -261,9 +261,9 @@ export default { ...@@ -261,9 +261,9 @@ export default {
} }
}, },
reassignMaxValue(value) { reassignMaxValue(value) {
var internalPageCount = this.$parent.internalPageCount; const { internalPageCount } = this.$parent;
if (+value > internalPageCount) { if (+value > internalPageCount) {
this.$refs.input.setCurrentValue(internalPageCount); this.$refs.input.setCurrentValue(internalPageCount || 1);
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment