fix: issue#9468,inputtag在输入内容为空,回车触发表单提交,假死问题

This commit is contained in:
wangfanghua 2024-01-18 16:38:51 +08:00
parent e365d1cb76
commit 3ab2d4beb3

View File

@ -506,6 +506,8 @@ export default class TagControl extends React.PureComponent<
this.setState({ this.setState({
inputValue: '' inputValue: ''
}); });
} else if (!value && evt.key === 'Enter') {
this.handleBlur(evt);
} }
} }