From 7a471673889fed97b86e515451224964a21bf2ea Mon Sep 17 00:00:00 2001 From: liuzedong02 Date: Thu, 21 Jul 2022 14:30:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20input-tag=20max=20=E5=B1=9E=E6=80=A7bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/Form/InputTag.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/amis/src/renderers/Form/InputTag.tsx b/packages/amis/src/renderers/Form/InputTag.tsx index fe7c48b43..f07dd3519 100644 --- a/packages/amis/src/renderers/Form/InputTag.tsx +++ b/packages/amis/src/renderers/Form/InputTag.tsx @@ -253,6 +253,7 @@ export default class TagControl extends React.PureComponent< : newValue; } + @autobind async addItem(option: Option) { const {selectedOptions, onChange} = this.props; const newValue = selectedOptions.concat(); @@ -530,10 +531,10 @@ export default class TagControl extends React.PureComponent< {options.map((item, index) => (
reachMax || this.addItem(item)} > {item.label}