You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @rekilina! I'm here to help you with any bugs, questions, or contributions you have in mind. Let's squash this bug together!
To address the issue of the window scrolling to the top when clicking on an empty space inside a tab, you can modify the onFocus event handler in the DashboardContainer.tsx file. The current implementation scrolls the window to the top if certain conditions are met. You can prevent this behavior by commenting out or removing the window.scrollTo line:
onFocus={e=>{if(e.target.classList.contains('ant-tabs-tabpane')&&window.scrollY<TOP_OF_PAGE_RANGE){// Comment out or remove the following line to prevent scrolling// window.scrollTo(window.scrollX, 0);}}}
This change will stop the window from scrolling to the top when the tab pane is focused [1].
Bug description
Steps to reproduce bag:
Window will scroll to top.
Screenshots/recordings
Scroll.to.top.on.click.1080p.mp4
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Firefox
Additional context
It seems that problem originate from DashboardContainer.tsx file, onFocus prop of Tabs component.
Checklist
The text was updated successfully, but these errors were encountered: