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

Commit

Permalink
Merge branch 'master' into master-deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mak committed Jun 26, 2021
2 parents 540b4b5 + e41fc96 commit 6aa025f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/aui-tree/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## @VERSION@

* [AUI-3200](https://issues.liferay.com/browse/AUI-3200) AUI-3200 Fix tree is built without children nodes (aui-tree-view) regression of AUI-3196 Prevent tree to create empty ul container with no children, remove previous condition and add ul element only when is expanded (has children).
* [AUI-3196](https://issues.liferay.com/browse/AUI-3196) An empty unordered list item (ul) is generated after each child list item (li)

## [3.0.3](https://github.com/liferay/alloy-ui/releases/tag/3.0.3)
Expand Down
2 changes: 1 addition & 1 deletion src/aui-tree/js/aui-tree-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ A.mix(TreeData.prototype, {

instance.childrenLength = v.length;

if (instance.childrenLength && !container) {
if (!container) {
container = instance._createNodeContainer();
}

Expand Down
6 changes: 1 addition & 5 deletions src/aui-tree/js/aui-tree-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,7 @@ var TreeNode = A.Component.create({

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

if (nodeContainer) {
if (!instance.get('expanded')) {
nodeContainer.hide();
}

if (nodeContainer && instance.get('expanded')) {
boundingBox.append(nodeContainer);
}

Expand Down

0 comments on commit 6aa025f

Please sign in to comment.