mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: issue#9468,inputtag在输入内容为空,回车触发表单提交,假死问题
This commit is contained in:
parent
e365d1cb76
commit
3ab2d4beb3
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user