Skip to content

Commit

Permalink
fix: issue#9468,inputtag在输入内容为空,回车触发表单提交,假死问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfanghua committed Jan 18, 2024
1 parent e365d1c commit 3ab2d4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/amis/src/renderers/Form/InputTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ export default class TagControl extends React.PureComponent<
this.setState({
inputValue: ''
});
} else if (!value && evt.key === 'Enter') {
this.handleBlur(evt);
}
}

Expand Down

0 comments on commit 3ab2d4b

Please sign in to comment.