Skip to content

Commit 2ecbea4

Browse files
[Portal] typeof Element doesn't work in iframe
1 parent 40448de commit 2ecbea4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/src/pages/components/drawers/ResponsiveDrawer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ ResponsiveDrawer.propTypes = {
170170
* Injected by the documentation to work in an iframe.
171171
* You won't need it on your project.
172172
*/
173-
container: PropTypes.instanceOf(typeof Element === 'undefined' ? Object : Element),
173+
container: PropTypes.any,
174174
};
175175

176176
export default ResponsiveDrawer;

docs/src/pages/components/drawers/ResponsiveDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ interface ResponsiveDrawerProps {
5757
* Injected by the documentation to work in an iframe.
5858
* You won't need it on your project.
5959
*/
60-
container?: Element;
60+
container?: any;
6161
}
6262

6363
export default function ResponsiveDrawer(props: ResponsiveDrawerProps) {

docs/src/pages/components/selects/selects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Menus are positioned over their emitting elements such that the currently select
1818
The Select component is meant to be interchangeable with a native `<select>` element.
1919

2020
If you are looking for more advanced features, like combobox, multiselect, autocomplete, async or creatable support, head to the [`Autocomplete` component](/components/autocomplete/).
21-
It's meant to be an improved version of "react-select".
21+
It's also meant to be an improved version of the "react-select" package.
2222

2323
## Native Select
2424

0 commit comments

Comments
 (0)