Skip to content

[Bug] PowerSearch: the clear-all button removes only the last filter per press #6409

Description

@nowgnuesLee

Description

PowerSearch's clear-all button doesn't clear all filters. Each press removes only the last one. Expected: one press removes every filter.

Reproduction

Reproducible on the public Storybook: Core/PowerSearch › Pre-set Filters

  1. Open the story. Two filters are applied, one on Status and one on Priority.
  2. Click the clear-all button ("Clear all", at the right edge of the input).
  3. Actual: only the "Priority" token is removed. A second press removes the remaining one.
  4. Expected: both tokens are removed in one press.

With more filters the effect is easier to see: Core/PowerSearch › Many Filters needs one press per filter.

Astryx Version

@astryxdesign/core@0.5.4. The same code path is unchanged in 0.6.2 and on main @ 65c6718.

Environment

Not environment-specific; this is state logic in PowerSearch. Reproduced on the public Storybook.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions