Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Aug 23, 2024
1 parent 2259b23 commit e8141a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/lemon-ui/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const Link: React.FC<LinkProps & React.RefAttributes<HTMLElement>> = Reac
const target = event.currentTarget
const container = document.getElementsByTagName('main')[0]
const topBar = document.getElementsByClassName('TopBar3000')[0]
if (container.contains(target)) {
if (!sidePanelOpen && container.contains(target)) {
setTimeout(() => {
// Little delay to allow the rendering of the side panel
const y = container.scrollTop + target.getBoundingClientRect().top - topBar.clientHeight
Expand Down

0 comments on commit e8141a7

Please sign in to comment.