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

ChoiceBox keeps selected item when the underlying collection is replaced.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      jdk1.8.0b83

      Description

      To reproduce:
      1. Click 'Set data' button.
      2. Select any item.
      3. Push 'Show selected item' button. It will print out selected item value.
      4. Push 'Set empty list' button.
      =>Push 'Show selected item' button. It will print out previous selected item value.
      Expected behavior is to recieve 'null'.

        Attachments

          Activity

            People

            Assignee:
            psomashe Parvathi Somashekar (Inactive)
            Reporter:
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Imported: