TreeView.getSelectionModel().getSelectedItems() sends 2 events when changing selection

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: javafx

      I add a ListChangeListener to the TreeView.getSelectionModel().getSelectedItems() property.

      The first time I select an item, I receive a single event with the selected item as expected.
      But the next selections do not work as expected.
      When I change the selection and click on another item, I receive 2 events instead of single one :
      - first one with empty selection
      - second one with the selected item

      Simple test case attached to reproduce.

            Assignee:
            Jonathan Giles
            Reporter:
            Sandra Lions-piron
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: