Failed prop type: Invalid prop `appElement` supplied to `Modal`.
See original GitHub issueCurrently, appElement
is expected to be an instance of window.HTMLElement
.
But, when the Modal
is rendered inside an iframe
, the iframe’s window.HTMLElement
is a different instance causing the following warning:
Failed prop type: Invalid prop
appElement
supplied toModal
.
See: Codesandbox
What’s the best to workaround this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:16
Top Results From Across the Web
Invalid prop of type `function` supplied expected a single ...
Failed prop type : Invalid prop userSignupRequest of type function supplied to SignUp , expected a single ReactElement. here is my code: import ......
Read more >failed prop type: invalid prop `rows` of type `object` supplied to ...
Failed prop type : Invalid prop children of type array supplied to ForwardRef(ListItemIcon) , expected a single ReactElement. failed Proptypes. Open side panel....
Read more >Warning: Failed prop type: Invalid prop `children` supplied to ...
Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Typography)`, expected a ReactNode. */<Typography key={item.id}>
Read more >react-modal documentation
Accessible modal dialog component for React.JS ... The only required prop for the modal object is isOpen , which indicates whether the modal...
Read more >Warning: Invalid prop `renderChatItem` - Sendbird Community
Only issue I see is: 'Warning' in console: Warning: Failed prop type: Invalid prop `renderChatItem` of type `function` supplied to ` ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah…the project will need to have everything that react-modal uses to compile…I’ll upload a precompiled version in this branch.
any updates?