mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 19:38:16 +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) {
|
} else if (clearValue && !self.selectFirst) {
|
||||||
self.selectedOptions.some((item: any) => item.__unmatched) &&
|
self.selectedOptions.some((item: any) => item.__unmatched) &&
|
||||||
onChange &&
|
onChange &&
|
||||||
onChange('', false, true);
|
onChange(
|
||||||
|
self.joinValues === false && self.multiple ? [] : '',
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return json;
|
return json;
|
||||||
|
Loading…
Reference in New Issue
Block a user