From 7c2d6ce9da01b6eeedcb6d1f2ff882e274ce886b Mon Sep 17 00:00:00 2001 From: ibolton336 Date: Tue, 7 Nov 2023 11:00:07 -0500 Subject: [PATCH] :bug: Fix layout issue when clicking between columns Signed-off-by: ibolton336 --- client/src/app/components/PageDrawerContext.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/app/components/PageDrawerContext.tsx b/client/src/app/components/PageDrawerContext.tsx index 7a6c95ed05..a7bb01da55 100644 --- a/client/src/app/components/PageDrawerContext.tsx +++ b/client/src/app/components/PageDrawerContext.tsx @@ -160,9 +160,11 @@ export const PageDrawerContent: React.FC = ({ }, [drawerPanelContentProps, setDrawerPanelContentProps]); // If the drawer is already expanded describing app A, then the user clicks app B, we want to send focus back to the drawer. - React.useEffect(() => { - drawerFocusRef?.current?.focus(); - }, [drawerFocusRef, focusKey]); + + // TODO: This introduces a layout issue bug when clicking in between the columns of a table. + // React.useEffect(() => { + // drawerFocusRef?.current?.focus(); + // }, [drawerFocusRef, focusKey]); React.useEffect(() => { const drawerHead = header === null ? children : header;