Merge pull request #9469 from TigerWFH/feature_inputtag_blur

fix: issue#9468,inputtag在输入内容为空,回车触发表单提交,假死问题
This commit is contained in:
张涛 2024-01-30 20:16:18 +08:00 committed by GitHub
commit f2b67af515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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