Skip to content

Commit

Permalink
🐛 Fix layout issue when clicking between columns
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 committed Nov 7, 2023
1 parent 93bb366 commit 7c2d6ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/src/app/components/PageDrawerContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ export const PageDrawerContent: React.FC<IPageDrawerContentProps> = ({
}, [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;
Expand Down

0 comments on commit 7c2d6ce

Please sign in to comment.