Skip to content

Commit a59a9dd

Browse files
authored
fix: blur quick jumper (#298)
1 parent 849e808 commit a59a9dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Options.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class Options extends React.Component {
3131

3232
handleBlur = (e) => {
3333
const { goButton, quickGo, rootPrefixCls } = this.props;
34-
if (goButton) {
34+
const { goInputText } = this.state;
35+
if (goButton || goInputText === '') {
3536
return;
3637
}
3738
if (
@@ -41,6 +42,9 @@ class Options extends React.Component {
4142
) {
4243
return;
4344
}
45+
this.setState({
46+
goInputText: '',
47+
});
4448
quickGo(this.getValidValue());
4549
};
4650

0 commit comments

Comments
 (0)