-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e4abf8
commit d96d440
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d96d440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs:
d96d440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个有个BUG
isValid = (page) => { return isInteger(page) && page !== this.state.current; }
在Options.jsx文件中
getValidValue() { const { goInputText, current } = this.state; return isNaN(goInputText) ? current : Number(goInputText); }
对输入值做了Number转换造成input失去焦点后为0,重置到首页
d96d440
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样改了之后,当size为0,pager为0,disabled仍然可以触发onchange