diff --git a/docs/src/pages/components/drawers/ResponsiveDrawer.js b/docs/src/pages/components/drawers/ResponsiveDrawer.js index d5a0163d5b12d1..f64121475bf98b 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.instanceOf(typeof Element === 'undefined' ? Object : Element), + container: PropTypes.any, }; export default ResponsiveDrawer; diff --git a/docs/src/pages/components/drawers/ResponsiveDrawer.tsx b/docs/src/pages/components/drawers/ResponsiveDrawer.tsx index 124136ce1326f6..85acc46c622967 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?: any; } export default function ResponsiveDrawer(props: ResponsiveDrawerProps) {