Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-1633

TreeNodeTask `check()` incorrectly removes `tree-node-child-unchecked` class from ancestor Nodes

    Details

      Description

      Note: The check behavior in 1.0.x is significantly different; I'm unable to confirm the same bug.

      TreeNodeTask check() incorrectly removes tree-node-child-unchecked class from ancestor Nodes.

      This happens when a descendant is checked while also having unchecked children.

      Steps to Replicate:

      1. Build a TreeView using Example Tree (below).
      2. Check GreatGrandParent (descendants will be checked as well)
      3. Uncheck ParentA (descendants will be unchecked as well)
      4. Reckeck ChildA (descendants will be checked as well)

      Expected Results:
      GreatGrandParent should be [ - ]

      Actual Results:
      GreatGrandParent is [ x ]

      State Key:

      • [ _ ] Unckecked
      • [ x ] Ckecked
      • [ - ] Ckecked and some descendants unchecked (could be grayed out or a dash)

      Example Tree:

      • GreatGrandParent
        • GrandParentA
          • ParentA
            • ChildA
              • GrandChildA
            • ChildB
        • GrandParentB
          • ParentB

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                maira.araujo Maíra Araujo (Inactive)
                Reporter:
                byran.zaugg Byran Zaugg (Inactive)
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 13 weeks, 1 day ago

                  Packages

                  Version Package
                  2.0.x
                  1.5.x
                  master
                  master-deprecated
                  3.0.x
                  2.0.0.31-deprecated
                  1.5.2.24
                  3.1.x