Warning: react-modal: App element is not defined.
See original GitHub issueShowing this warning after update reactjs
Warning: react-modal: App element is not defined. Please use
Modal.setAppElement(el)or set
appElement={el}. This is needed so screen reades don't see main content when modal is opened. It is not recommended, but you can opt-out by setting
ariaHideApp={false}.
check same in react-modal for how to remove this warning https://github.com/reactjs/react-modal/issues/576
How to solve same here ?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
"Warning: react-modal: App element is not defined. Please ...
Everything works fine, but when the Modal is opened, the following Warning appears in my console: index.js:2177 Warning: react-modal: App ...
Read more >Warning: react-modal: App element is not defined. #576 - GitHub
I upgraded my yarn version and re-ran yarn install. And now I am getting this warning. It's strange, because nothing in my code...
Read more >[Resolved] Warning: react-modal: App element is not defined ...
When using the react-modal package component, we see a Warning message in the console saying: Warning: react-modal: App element is not ...
Read more >Warning: react-modal: App element is not defined. Please use ...
Coding example for the question "Warning: react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`"-Reactjs.
Read more >Accessibility - react-modal documentation
The app element. It is important for users of screenreaders that other page content be hidden (via the aria-hidden attribute) while the modal...
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 FreeTop 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
Top GitHub Comments
Should be fixed now as of
v4.4.0
Same issue.
FIX
. React modal changed their api a little bit. https://github.com/reactjs/react-modal/issues/576 check in the comments for fix.