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
This commit is contained in:
Jingwei.Zhang 2023-05-10 10:17:55 +08:00
parent 3c5aeaa945
commit f395e0e2ec

View File

@ -450,6 +450,7 @@ class MagicInput extends PureComponent {
this.clearInputValue();
this.setState(
{
inputValue: '',
tags: [],
currentFilter: null,
isFocus: false,