Skip to content

Backspacing a partial filter removes part of the previous filter too #1301

@yvrhdn

Description

@yvrhdn

Noticed this bug in the Traces Drilldown filter box:

Screen.Recording.2025-11-07.at.13.00.45.mov

Basically:

  • start adding a second filter
  • change your mind and remove it with backspace
  • when you backspace the filter attribute it will also remove the value from the previous filter

Other notes:

  • this also happens in Logs Drilldown
  • this doesn't happen if the second filter is finished, only when a partial filter is erased

I first reported this in Slack: https://raintank-corp.slack.com/archives/C075BDBTX96/p1762517728640289

That is a bit annoying! Looks like Traces Drilldown and Logs Drilldown are both extending AdHocFiltersVariable for the filters bar variables, which exists in scenes.

I've noticed that the behaviour you mentioned will not occur if you select a value for the second filter - then press backspace a few times. Also, if you click out of the input box in the video above, rather than enter a new value for the first filter - the previous value will remain.

In any case, the UX could be improved here. It would be great if you can open an issue in the scenes repo - add this video and Observability Traces & Profiling, Observability Logs teams for visibility.

cc @grafana/observability-traces-and-profiling @grafana/observability-logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions