Skip to content

Commit a2608f5

Browse files
authored
Merge pull request #1 from Koopos/Koopos-patch-1
fix bug : when blur in quick jump, jump to 1
2 parents bf50ed7 + 01cf3e4 commit a2608f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pagination.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Pagination extends React.Component {
190190
}
191191

192192
isValid = (page) => {
193-
return isInteger(page) && page !== this.state.current;
193+
return isInteger(page) && page>=1 && page !== this.state.current;
194194
}
195195

196196
shouldDisplayQuickJumper = () => {

0 commit comments

Comments
 (0)