-
- Downloads
Fix dashboard scroll jank when there are no filters (#32245)
* Fix dashboard scroll jank is some cases The behavior defined by stickyParameters.js was updating the dashboard's parametersWidgetOffsetTop state with undefined at every scroll event, causing jank. This was caused by mistakenly assuming that a dashboard component always has its parametersWidgetRef set to something other than an empty React ref, when in fact it can be null when the dashboard has no filters. This changes also fix how a React ref is used to make parametersWidgetRef reference the HTMLElement the parameters widget. * Remove initializeWidgetOffsetTop altogether
Showing
- frontend/src/metabase/dashboard/components/Dashboard/Dashboard.jsx 1 addition, 1 deletion...src/metabase/dashboard/components/Dashboard/Dashboard.jsx
- frontend/src/metabase/dashboard/components/Dashboard/stickyParameters.js 9 additions, 13 deletions...tabase/dashboard/components/Dashboard/stickyParameters.js
- frontend/src/metabase/dashboard/components/Dashboard/stickyParameters.unit.spec.js 4 additions, 24 deletions...hboard/components/Dashboard/stickyParameters.unit.spec.js
Please register or sign in to comment