mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 修复nestedSelect 移动端下选中数据异常问题 (#5121)
This commit is contained in:
parent
a41b2c21ef
commit
5e045af00e
@ -455,15 +455,7 @@ export class Cascader extends React.Component<CascaderProps, CascaderState> {
|
||||
if (onlyLeaf && selectedOptions.length && selectedOptions[0].children) {
|
||||
return;
|
||||
}
|
||||
onChange(
|
||||
joinValues
|
||||
? selectedOptions
|
||||
.map(item => item[valueField as string])
|
||||
.join(delimiter)
|
||||
: extractValue
|
||||
? selectedOptions.map(item => item[valueField as string])
|
||||
: selectedOptions
|
||||
);
|
||||
onChange(selectedOptions);
|
||||
onClose && onClose();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user