mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
Checkbox 选中问题优化
This commit is contained in:
parent
634b9f3392
commit
a2c25b4133
@ -81,7 +81,7 @@ export function expandValue(value: OptionValue, props: Partial<OptionProps>): Op
|
||||
return null;
|
||||
}
|
||||
|
||||
if (valueType === 'object' && props.joinValues !== false) {
|
||||
if (valueType === 'object' && value && value.hasOwnProperty(props.valueField || 'value')) {
|
||||
value = (value as Option)[valueField || 'value'] || '';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user