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
- Open the story. Two filters are applied, one on Status and one on Priority.
- Click the clear-all button ("Clear all", at the right edge of the input).
- Actual: only the "Priority" token is removed. A second press removes the remaining one.
- 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.
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
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.