Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8088812

[TreeTable] Unintended selection of a collapsing TreeItem/TreeTableRow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u40
    • javafx
    • None

      Clicking on a branch-item's disclosure node/arrow expands or collapses this item but doesn't and shouldn't select it.

      But if one of the descendants of an expanded branch-item is selected and this branch-item collapses by clicking on the disclosure node then the branch-item is selected instead of its descendant.

      This will unintendedly release the branch-item's assigned action.

      Shouldn't the selection be cleared instead of selectng an ancestor?

      Collapsing and selecting the branch-item simultaneously can be achieved by a double-click on the item's label.


      Test cases: TreeView and TreeTableView(Row Selection) in Modena.jar.

      Select in TreeView 'Child Node 1'. 'Child Node 3' can now be expanded and collapsed without changing the selection.

      Now select 'Child Node 5' and collapse 'Child Node 3' by clicking on the arrow.
      Afterwards 'Child Node 3' is selected and its (potential) action is released.

            angorya Andy Goryachev
            alammersdjfx August Lammersdorf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: