Skip to content

Commit

Permalink
Fix unfocusable Search box when pane item is open
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Koech authored and Kevin Koech committed Feb 3, 2025
1 parent 519afd8 commit 7951542
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ function DesktopPanel({ sx, ...props }) {
const open = value === "rich-data" && !tutorialOpen;
return (
<>
<PanelButtons
{...props}
onValueChange={handleValueChange}
open={open}
value={value}
/>
<Drawer
anchor="left"
onClose={closeDrawer}
Expand All @@ -41,29 +47,24 @@ function DesktopPanel({ sx, ...props }) {
overscrollBehaviorBlock: "none",
},
}}
variant="persistent"
PaperProps={{
elevation: 0,
square: true,
sx: ({ typography }) => ({
sx: () => ({
background: "transparent",
border: "none",
display: "flex",
flexDirection: "row",
height: "100%",
height: "calc(100vh - 88px)", // Toolbar height
overflowY: "visible",
position: "relative",
top: typography.pxToRem(88), // Toolbar height
top: 0, // Toolbar height
}),
}}
>
<PanelItem {...props} item={{ value: "rich-data" }} />
</Drawer>
<PanelButtons
{...props}
onValueChange={handleValueChange}
open={open}
value={value}
/>
</>
);
}
Expand Down

0 comments on commit 7951542

Please sign in to comment.