diff --git a/docs/src/pages/components/drawers/ResponsiveDrawer.js b/docs/src/pages/components/drawers/ResponsiveDrawer.js index b0818a05420d2a..409c0b4bd4ea49 100644 --- a/docs/src/pages/components/drawers/ResponsiveDrawer.js +++ b/docs/src/pages/components/drawers/ResponsiveDrawer.js @@ -170,7 +170,7 @@ ResponsiveDrawer.propTypes = { * Injected by the documentation to work in an iframe. * You won't need it on your project. */ - container: PropTypes.object.isRequired, + container: PropTypes.object, }; export default ResponsiveDrawer; diff --git a/docs/src/pages/components/drawers/ResponsiveDrawer.tsx b/docs/src/pages/components/drawers/ResponsiveDrawer.tsx index 65f08bed41bdce..7c3a296aa37c93 100644 --- a/docs/src/pages/components/drawers/ResponsiveDrawer.tsx +++ b/docs/src/pages/components/drawers/ResponsiveDrawer.tsx @@ -57,7 +57,7 @@ interface ResponsiveDrawerProps { * Injected by the documentation to work in an iframe. * You won't need it on your project. */ - container: Element; + container?: Element; } export default function ResponsiveDrawer(props: ResponsiveDrawerProps) {