Skip to content

KBarSearch's input value can't be reliably controlled #384

@karlshea

Description

@karlshea

When the component is initially mounted local state is created for the search input field, and it starts off with the current search query. However this leads to two issues:

  1. Calling query.setSearch() from another component won't update the input's value
  2. If the user searched for an action with children and then selected the action, the input isn't cleared so they can start searching the child actions. Due to the first issue this can't be fixed by calling query.setSearch('').

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions