Skip to content

fix: partial or full check should refer to original value #7769

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

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(Tree): watch value change
  • Loading branch information
EasonLin0716 committed May 28, 2025
commit 58068a025b4e36161dce9f504e39c921240f0898
10 changes: 7 additions & 3 deletions packages/primevue/src/tree/Tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ export default {
watch: {
expandedKeys(newValue) {
this.d_expandedKeys = newValue;
},
value: {
handler() {
this.treeNodeChildrenMap = this.initTreeNodeChildrenMap();
},
immediate: true,
deep: true
}
},
created() {
this.treeNodeChildrenMap = this.initTreeNodeChildrenMap();
},
methods: {
onNodeToggle(node) {
const key = node.key;
Expand Down
Loading