Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Dec 14, 2024
1 parent f0a62b9 commit 359d993
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions design-system/packages/modals/src/DrawerController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export const DrawerController = ({ isOpen, children }: DrawerControllerProps) =>
return (
<Transition appear mountOnEnter unmountOnExit in={isOpen} timeout={150} nodeRef={nodeRef}>
{transitionState => (
<DrawerControllerContextProvider value={transitionState} ref={nodeRef}>
{children}
</DrawerControllerContextProvider>
<div ref={nodeRef}>
<DrawerControllerContextProvider value={transitionState}>
{children}
</DrawerControllerContextProvider>
</div>
)}
</Transition>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function ComponentBlockRender ({

const childrenByPath: Record<string, ReactElement> = {}
let maybeChild: ReactElement | undefined
children.forEach((child: ReactElement) => {
children.forEach((child: ReactElement<any>) => {
const propPath = child.props.children.props.element.propPath
if (propPath === undefined) {
maybeChild = child
Expand Down

0 comments on commit 359d993

Please sign in to comment.