Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree in omim: node disabled changed value while check parent node #547

Open
ryh opened this issue Apr 2, 2020 · 2 comments
Open

tree in omim: node disabled changed value while check parent node #547

ryh opened this issue Apr 2, 2020 · 2 comments

Comments

@ryh
Copy link

ryh commented Apr 2, 2020

tree in omim: node disabled changed value while check parent node

示例 里p-5是被disabled的选中状态,按我的理解这个状态应该是只读的

但切换父节点p-4值时 会同时改变它的值

与之逻辑相悖的是 只选择俩个sibling(同级的项目6、项目7)p-4就忽略了p-5的值了

@ryh
Copy link
Author

ryh commented Apr 2, 2020

typo: while checking

checkAll(node, checked) {
node.children && node.children.forEach(child => {
child.checked = checked
this.checkAll(child, checked)
})
}

Ps GitHub手机客户端不怎么好用啊:disappointed: 😂

@dntzhang
Copy link
Collaborator

dntzhang commented Apr 2, 2020

哦。收到,多谢,我看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants