From 3ab2d4beb3c77b22606ba0e6999092a777756486 Mon Sep 17 00:00:00 2001 From: wangfanghua Date: Thu, 18 Jan 2024 16:38:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20issue#9468,inputtag=E5=9C=A8=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=86=85=E5=AE=B9=E4=B8=BA=E7=A9=BA=EF=BC=8C=E5=9B=9E?= =?UTF-8?q?=E8=BD=A6=E8=A7=A6=E5=8F=91=E8=A1=A8=E5=8D=95=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=EF=BC=8C=E5=81=87=E6=AD=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/Form/InputTag.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/amis/src/renderers/Form/InputTag.tsx b/packages/amis/src/renderers/Form/InputTag.tsx index 52f2584ed..a70b918a2 100644 --- a/packages/amis/src/renderers/Form/InputTag.tsx +++ b/packages/amis/src/renderers/Form/InputTag.tsx @@ -506,6 +506,8 @@ export default class TagControl extends React.PureComponent< this.setState({ inputValue: '' }); + } else if (!value && evt.key === 'Enter') { + this.handleBlur(evt); } }