Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-135540

Tree is built without children nodes when there is not expanded children node (aui-tree-view)

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce

      • Create a widget page.
      • Go to configure the page -> 'Advanced' tab -> 'JAVASCRIPT (Paste JavaScript code that is executed at the bottom of the page.)'
      • Copy the example showed below:
      YUI().use(
        'aui-tree-view',
        function(Y) {
          var children = [
            {
              children: [
                {
                  children: [
                    {
                        children: [
                        {
                          label: 'File X2'
                        }
                      ],
                      expanded: true,
                      label: 'File X1'
                    }
                  ],
                  label: 'File X'
                },
                { 
                  label: 'File Y'
                },
                {
                  label: 'File Z'
                }
              ],
              expanded: true,
              label: 'Root'
            }
          ];    new Y.TreeView(
            {
              boundingBox: '#myTreeView',
              children: children
            }
          ).render();
        }
      );
      
      
      • Sign out.
      • Browse the page as guest user.

      Observed behavior
      Only 'Root' node and first level of children is generated for the tree.

      Expected behavior
      The complete tree is generated: 'Root' node with all three child-nodes:
      'File X' ->
       'File X1' ->
        'File X2',
      'File Y',
      'File Z'

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              georgel.pop Georgel Vasile Pop
              Reporter:
              georgel.pop Georgel Vasile Pop
              Participants of an Issue:
              Recent user:
              Georgel Vasile Pop
              Engineering Assignee:
              Georgel Vasile Pop
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 weeks, 4 days ago

                  Packages

                  Version Package
                  Master