Skip to content

Commit 3248cc6

Browse files
committed
Revert "fix: momentum scroll persists on cached panel"
This reverts commit 8af69bc.
1 parent e4dbc17 commit 3248cc6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,7 @@ export default class DataBrowser extends React.Component {
223223
this.state.isPanelVisible &&
224224
this.aggregationPanelRef?.current
225225
) {
226-
const panel = this.aggregationPanelRef.current;
227-
panel.scrollTop = 0;
228-
panel.style.overflowY = 'hidden';
229-
setTimeout(() => {
230-
if (panel === this.aggregationPanelRef.current) {
231-
panel.style.overflowY = 'auto';
232-
}
233-
}, 0);
226+
this.aggregationPanelRef.current.scrollTop = 0;
234227
}
235228
}
236229

0 commit comments

Comments
 (0)