Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

AUI-3206 append container as we expand tree item #176

Merged
merged 1 commit into from
Oct 19, 2021
Merged
Changes from all commits
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
7 changes: 7 additions & 0 deletions src/aui-tree/js/aui-tree-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,13 @@ var TreeNode = A.Component.create({
expand: function() {
var instance = this;

var boundingBox = instance.get('boundingBox');
var nodeContainer = instance.get('container');

if (nodeContainer && !boundingBox.contains(nodeContainer)) {
boundingBox.append(nodeContainer);
}

instance.set('expanded', true);
},

Expand Down