grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
141 stars 21 forks source link

AdHocFiltersCombobox: adjust combobox filter values when switching between multi and single operators #927

Closed Sergej-Vlasov closed 3 weeks ago

Sergej-Vlasov commented 1 month ago

Added special logic for switching between operator multi/single types:

  1. switching from multi to single

    • reset local multi value state
    • reset filter values and valueLabels fields
  2. switching from single to multi

    • populate local multi value state
    • add default values in filter values and valueLabels fields
📦 Published PR as canary version: 5.20.3--canary.927.11457305359.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes-react@5.20.3--canary.927.11457305359.0 npm install @grafana/scenes@5.20.3--canary.927.11457305359.0 # or yarn add @grafana/scenes-react@5.20.3--canary.927.11457305359.0 yarn add @grafana/scenes@5.20.3--canary.927.11457305359.0 ```
scenes-repo-bot-access-token[bot] commented 3 weeks ago

:rocket: PR was released in v5.20.3 :rocket: