Skip to content

Commit 681fa12

Browse files
Update HierarchicalTreeViewItem.js
Fixing widget initialization after bindings creation (T1125428)
1 parent ffae9c5 commit 681fa12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CS/AspNetCoreCustomItem/wwwroot/js/HierarchicalTreeViewItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
}
9494
};
9595

96-
if (!changeExisting) {
96+
if (!changeExisting || !this.dxTreeViewWidget) {
9797
let container = $element.jquery ? $element[0] : $element;
9898
while (container.firstChild)
9999
container.removeChild(element.firstChild);
@@ -145,4 +145,4 @@
145145
}
146146
}
147147
return TreeViewItem;
148-
})();
148+
})();

0 commit comments

Comments
 (0)