Open
Description
Bug description
Summary
In Apache Superset version 4.1.1, clicking on a legend item in a Deck.gl scatter plot chart causes the browser window to scroll to the top of the page. This disrupts the dashboard experience, especially on long dashboards.
Steps to Reproduce
- Install Superset 4.1.1 (
pip install apache-superset
) - Create a Deck.gl scatter plot chart with a legend.
- Add the chart to a dashboard that is long enough to allow scrolling.
- Scroll down and click any legend item in the chart.
Expected Result
- Clicking a legend item should only filter/highlight data in the chart.
- The page should not scroll.
Actual Result
- Clicking a legend item scrolls the browser window to the top of the page.
Screenshots / GIF
Environment
- Superset version: 4.1.1 (pip install)
- Browser: [e.g. Chrome 124, Firefox 125]
- OS: [e.g. Ubuntu 22.04, Windows 10, macOS Sonoma]
- Deployment method: pip
Additional Context
- This bug was reported and fixed in earlier versions (#13092, PR #13335), but appears to be back in 4.1.1.
- No custom plugins or overrides in use.
- Hard-refreshing/clearing cache does not help.
- The issue affects dashboard navigation for end-users.
References
Please let me know if you need further details or a sample dashboard to reproduce!
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
- I have searched Superset docs and Slack and didn't find a solution to my problem.
- I have searched the GitHub issue tracker and didn't find a similar bug report.
- I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.