ChoiceBox: initially toggle not sync'ed to selection

XMLWordPrintable

      Yet another glitch in ChoiceBoxSkin: in a sequence: select -> attach skin -> find selected toggle no toggle is selected (see test snippet below)

      A failing test case:

          @Test
          public void testBaseToggleInitialSelect() {
              SingleSelectionModel<String> sm = box.getSelectionModel();
              int selectedIndex = box.getItems().size() - 1;
              sm.select(selectedIndex);
              showChoiceBox();
              assertToggleSelected(selectedIndex);
          }

            Assignee:
            Jeanette Winzenburg
            Reporter:
            Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: