ElemeFE / ElemeFE/element

[bug report] when the cascade selector lazy loads the radio selection, the checkstrictly mode is selected. When the child node has not been loaded, select the node, and no data will pop up ()

Open
#21,329 5 comments 0 reactions 0 assignees View on GitHub
component: cascader need: repro type: bug
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.6

### OS/Browsers version
chrome 91.0.4472.124

### Vue version
2.6.14

### Reproduction Link
项目要登录,单独弄个链接太麻烦,直接看问题吧

### Steps to reproduce
代码大概这样,多级单选不关联,选中父节点没有触发lazyLoad,导致弹出暂无数据的子选项框,需要点击父节点条目才会加载子节点

props: {
lazy: true,
checkStrictly: true,

lazyLoad(node, resolve) {
console.log(node)

//异步方法,省略}
}

### What is Expected?
单选选中条目会触发lazyLoad加载子节点数据

### What is actually happening?
单选选中没有调用lazyLoad,导致子节点没有数据,但还是弹出了子节点面板,所以显示暂无数据,只有点击条目才会触发lazyLoad去加载数据

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.