Skip to content

Bug: Event filters can’t be cleared or toggled off #1711

@aasimsyed

Description

@aasimsyed

Terms

Behavior

Summary

Event filters get “stuck” once you pick a value. In SidebarLeftFilterEvents.vue, the radio fields (Days ahead, Event type, Location type) and the auto-submitting form provide no way to remove an applied filter. After selecting anything, you can’t trigger the unfiltered state.

Steps to Reproduce

  1. Visit the events list (sidebar filter visible).
  2. Click a “Days ahead” radio option (1/7/30); it auto-submits.
  3. Click the same radio again—nothing happens; the filter stays applied.
  4. Repeat with event type or location type radios — you remain filtered.

Actual Behaviour

  • Radio inputs behave as immutable once chosen; clicking the active option does nothing.
  • There is no “Clear filters” button to reset the entire form/query.

Expected Behaviour

  • Clicking a selected radio option toggles it off (radio group returns to “no filter”).
  • A visible “Clear filters” button resets all filters, including query params, and restores default results.

Acceptance Criteria

  • Radio components emit “deselect” when the currently selected option is clicked again; the corresponding form value becomes empty and router query omits that key.
  • A “Clear filters” button resets all form values, pushes only the default view, and triggers the unfiltered event list.
  • Add tests covering radio toggle-off behaviour and the global clear action.

Metadata

Metadata

Labels

bugSomething isn't workingfeatureNew feature or requestfrontendRelates to the project frontendtypescriptRelates to TypeScript codevueRelates to Vue code

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions