Skip to content

Commit 7499bc5

Browse files
committed
Update tree-view.ts
1 parent f4538b0 commit 7499bc5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

assets/hooks/tree-view.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ const TreeViewHook: Hook<object & TreeViewHookState, HTMLElement> = {
124124
},
125125

126126
updated(this: object & HookInterface<HTMLElement> & TreeViewHookState) {
127-
// if (!getBoolean(this.el, "controlled")) return;
128-
// this.treeView?.updateProps({
129-
// expandedValue: getStringList(this.el, "expandedValue"),
130-
// selectedValue: getStringList(this.el, "selectedValue"),
131-
// });
127+
if (!getBoolean(this.el, "controlled")) return;
128+
this.treeView?.updateProps({
129+
expandedValue: getStringList(this.el, "expandedValue"),
130+
selectedValue: getStringList(this.el, "selectedValue"),
131+
});
132132
},
133133

134134
destroyed(this: object & HookInterface<HTMLElement> & TreeViewHookState) {

0 commit comments

Comments
 (0)