mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:28:20 +08:00
Checkbox 选中问题优化
This commit is contained in:
parent
8ed2c7c8d5
commit
b733940049
@ -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