From f395e0e2ec023884af67233dc13c33e7fd2d0c41 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Wed, 10 May 2023 10:17:55 +0800 Subject: [PATCH] fix: fix MagicInput component Fix when the current input value does not generate a tag, but click the clear button, the search menu can not be shown. Clear the input value in the state. Closes-Bug: #2019065 Change-Id: Id985ee76db395a742152d5982af0766559e5a5da --- src/components/MagicInput/index.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/MagicInput/index.jsx b/src/components/MagicInput/index.jsx index 58795952..e1affc78 100644 --- a/src/components/MagicInput/index.jsx +++ b/src/components/MagicInput/index.jsx @@ -450,6 +450,7 @@ class MagicInput extends PureComponent { this.clearInputValue(); this.setState( { + inputValue: '', tags: [], currentFilter: null, isFocus: false,