Skip to content

Commit

Permalink
[Portal] typeof Element doesn't work in iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 15, 2020
1 parent 40448de commit 639de37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/drawers/ResponsiveDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion docs/src/pages/components/drawers/ResponsiveDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 639de37

Please sign in to comment.