[bug report] cascade selector is lazy to load echo. Click the first level tab bar to clear the selected items
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.15.1
### OS/Browsers version
mac Os
### Vue version
2.6.12
### Reproduction Link
https://codepen.io/qinpeip/pen/yLMzyKo?editors=1000
### Steps to reproduce
数据懒加载回显。
点击一级标签加载剩余未选中的二级标签,已经选中的值会被清空。
### What is Expected?
不要清空已选中的值。
### What is actually happening?
我在查看源码的时候,发现是因为在懒加载二级数据的时候,默认给一级数据设置了false:
if (multiple) {
// if leaf sync checked state, else clear checked state
const checked = isLeaf ? node.checked : false;
this.handleMultiCheckChange(checked);
}
这样做会导致已经被选中的二级数据被清空掉。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.