From 4efcc5359fb8597432954998746c8394bdc32279 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Thu, 6 Aug 2020 16:53:01 +0800 Subject: [PATCH] fix: blur quick jumper --- src/Options.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Options.jsx b/src/Options.jsx index 7e4046bc..9910581b 100644 --- a/src/Options.jsx +++ b/src/Options.jsx @@ -31,7 +31,8 @@ class Options extends React.Component { handleBlur = (e) => { const { goButton, quickGo, rootPrefixCls } = this.props; - if (goButton) { + const { goInputText } = this.state; + if (goButton || goInputText === '') { return; } if ( @@ -41,6 +42,9 @@ class Options extends React.Component { ) { return; } + this.setState({ + goInputText: '', + }); quickGo(this.getValidValue()); };