mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 10:29:19 +08:00
fix: 修复select等options组件在source切换后无数据且multiple时空值不符合预期的问题
This commit is contained in:
parent
1360cc1dcf
commit
d1ab34bf61
@ -843,7 +843,11 @@ export const FormItemStore = StoreNode.named('FormItemStore')
|
||||
} else if (clearValue && !self.selectFirst) {
|
||||
self.selectedOptions.some((item: any) => item.__unmatched) &&
|
||||
onChange &&
|
||||
onChange('', false, true);
|
||||
onChange(
|
||||
self.joinValues === false && self.multiple ? [] : '',
|
||||
false,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
return json;
|
||||
|
Loading…
Reference in New Issue
Block a user