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) => (