From e8141a76e6e6afec723ee662cca4fb3399e2359c Mon Sep 17 00:00:00 2001 From: Ben White Date: Fri, 23 Aug 2024 10:11:51 +0100 Subject: [PATCH] Fix --- frontend/src/lib/lemon-ui/Link/Link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/lemon-ui/Link/Link.tsx b/frontend/src/lib/lemon-ui/Link/Link.tsx index 06a098ad9e612..41ed5847842b2 100644 --- a/frontend/src/lib/lemon-ui/Link/Link.tsx +++ b/frontend/src/lib/lemon-ui/Link/Link.tsx @@ -118,7 +118,7 @@ export const Link: React.FC> = 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