grafana / scenes

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

Combobox: Fix "Apply" button positioning when scrolling #918

Open ashharrison90 opened 2 days ago

ashharrison90 commented 2 days ago

before

https://github.com/user-attachments/assets/6452ea78-5601-4e5e-9a61-74bf3b9da174

after

https://github.com/user-attachments/assets/1ee53e97-b03b-43fc-96fb-f8f3ad912caf

Fixes https://github.com/grafana/hyperion-planning/issues/124

📦 Published PR as canary version: 5.16.1--canary.918.11054523232.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes-react@5.16.1--canary.918.11054523232.0 npm install @grafana/scenes@5.16.1--canary.918.11054523232.0 # or yarn add @grafana/scenes-react@5.16.1--canary.918.11054523232.0 yarn add @grafana/scenes@5.16.1--canary.918.11054523232.0 ```
ashharrison90 commented 2 days ago

hmmmmm, even this doesn't fully fix the problem since the apply button doesn't reposition immediately when you type to filter the list... 😬

ashharrison90 commented 2 days ago

ok with the new changes it should work in all cases 👌