Skip to content

bug(dashboard): NLFilterBar auto-commits filter on blur — surprise filtering behavior #4403

@OneStepAt4time

Description

@OneStepAt4time

Description

The NLFilterBar component commits the current input as a filter when the user blurs (clicks away from) the input field. This is unexpected behavior — users may click elsewhere to dismiss their typing, not to commit it.

Location

dashboard/src/components/shared/NLFilterBar.tsx line ~154:

onBlur={() => { if (inputValue.trim()) commitInput(); }}

Steps to Reproduce

  1. Go to Sessions page
  2. Start typing a filter like "active sessions"
  3. Click somewhere else on the page (e.g., a nav item, scrolling)
  4. Filter is committed as chips without the user pressing Enter

Expected Behavior

Filters should only commit on explicit actions:

  • Enter key
  • Comma
  • Clicking a submit button

Blur should NOT commit — it is not an intentional filter action.

Fix

Remove the onBlur handler or replace with a clear button pattern. Users who type and click away are implicitly cancelling, not confirming.

Environment

  • Aegis Dashboard (all versions with NLFilterBar)
  • All browsers

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugSomething isn't workingcidashboardreleasedIncluded in a published releaseux

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions