mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
feat: combo组件添加addItem动作
This commit is contained in:
parent
04802f8b9e
commit
0ed56e82b2
@ -448,7 +448,7 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
const {onChange, resetValue} = this.props;
|
||||
|
||||
if (actionType === 'addItem') {
|
||||
this.addItemValue(args.item);
|
||||
this.addItemValue(args?.item ?? {});
|
||||
}
|
||||
else if (actionType === 'clear') {
|
||||
onChange('');
|
||||
|
Loading…
Reference in New Issue
Block a user