ElemeFE / ElemeFE/element

[Bug Report] tree:@current-change Sometimes it doesn't trigger correctly

Open
#21,230 2 comments 0 reactions 0 assignees View on GitHub
component: tree type: bug
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
Chrome 91.0.4472.77

### Vue version
2.5.2

### Reproduction Link
https://github.com/liuning0406/test/blob/main/addSysDic.vue

### Steps to reproduce
1.tree在多层 dialog内
2. " default-expand-all"属性使用默认的false," show-checkbox " 为true
3.给tree添加current-change事件
4.有时候 父节点的全选全消不能触发子节点的current-change事件
5.将 default-expand-all 设置为true 或先展开节点 在点击父节点的选中框时可以触发子节点的current-change事件

### What is Expected?
点击父节点的选择框时,子节点也可以触发current-change事件,从而一次性提交所有改变项,减少服务器压力

### What is actually happening?
点击父节点选择框时,不会触发子节点的current-change事件,额外处理过于麻烦

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.