Skip to content

Commit

Permalink
🐛 Fix layout bug on row click (intermittent)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Nov 6, 2023
1 parent 3791d04 commit 254ca3d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/src/app/components/PageDrawerContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const PageDrawerContent: React.FC<IPageDrawerContentProps> = ({
setDrawerPageKey,
} = React.useContext(PageDrawerContext);

// Warn if we are trying to render more than one PageDrawerContent (they'll fight over the same state).
// // Warn if we are trying to render more than one PageDrawerContent (they'll fight over the same state).
React.useEffect(() => {
numPageDrawerContentInstances++;
return () => {
Expand Down Expand Up @@ -171,9 +171,7 @@ export const PageDrawerContent: React.FC<IPageDrawerContentProps> = ({
setDrawerPanelContent(
<>
<DrawerHead>
<span tabIndex={isExpanded ? 0 : -1} ref={drawerFocusRef}>
{drawerHead}
</span>
{drawerHead}
<DrawerActions>
<DrawerCloseButton
// We call onCloseClick here instead of setIsDrawerExpanded
Expand Down

0 comments on commit 254ca3d

Please sign in to comment.