Skip to content

Commit 435ebc1

Browse files
authored
Update Options.jsx
这个组件并没有current状态(某个版本改动导致),对应的逻辑应该重新调整,更符合实际情况。
1 parent 59f5599 commit 435ebc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Options.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class Options extends React.Component {
1212
};
1313

1414
getValidValue() {
15-
const { goInputText, current } = this.state;
15+
const { goInputText } = this.state;
16+
const { current } = this.props;
1617
// eslint-disable-next-line no-restricted-globals
1718
return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
1819
}

0 commit comments

Comments
 (0)