Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2136

Dropdown does not handle change to options well

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0, 2.5.0-alpha1
    • Component/s: frontend
    • Labels:
      None

      Description

      Precondition: OPT-2004 is merged

      Reproduce:

      • goto the process definition selection
      • select a process definition that has one version
      • select another process definition that has two versions
      • Use the keyboard to navigate to the version select dropdown
      • Press enter to open the dropdown
      • Use the down arrow key to navigate through the options

      Expected:

      • I can access all options using the down arrow key

      Observed:

      • Only the all version entry is accessible

      Hint:
      The Dropdown component uses an instance variable to store refs to the Dropdown options (Github link). When the children change (componentDidUpdate lifecycle), the old refs are still kept in this array, making newly added options not accessible

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sebastian.stamm Sebastian Stamm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: