Skip to content

Select dropdown in Simple condition loses filter state after being closed #6256

@mpetit-boop

Description

@mpetit-boop

Describe the bug
In the Simple condition in the Conditional tab in the edit view, if the user adds a search value, closes the dropdown without selecting anything and re-opens the dropdown, the list is no longer filtered by the search value, but the search value is still visible in the search field.

Version/Branch
v6.0.1
It can also be reproduced on the Formio.

To Reproduce
Steps to reproduce the behavior:

  1. In a form, add a Text field and any other 2 components.
  2. Click on the Edit for the Text Field.
  3. Go to the Conditional tab.
  4. In the Simple section, open the dropdown for "When the form component".
  5. Use the search field to input "Text" - the dropdown list will filter automatically to only show the Text Field component.
  6. Without selecting that search result, click anywhere outside the dropdown to close it.
  7. Re-open the dropdown.
  8. The search value is still visible, but the list is no longer filtered by the search value.

Expected behavior
When re-opening the dropdown after it was closed, I would expect the list to still be filtered based on the search value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions