fix: 修复select等options组件在source切换后无数据且multiple时空值不符合预期的问题

This commit is contained in:
jinye 2024-06-05 21:48:32 +08:00 committed by lmaomaoz
parent 1360cc1dcf
commit d1ab34bf61

View File

@ -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;