Skip to content
Snippets Groups Projects
Commit d9127471 authored by Tina Quach's avatar Tina Quach
Browse files

set app element so the body is not automatically aria-hidden by the react modal default behavior

parent e4ed4e86
No related branches found
No related tags found
No related merge requests found
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import Modal from 'react-modal';
import AppStateHOC from './lib/app-state-hoc.jsx'; import AppStateHOC from './lib/app-state-hoc.jsx';
import GUI from './containers/gui.jsx'; import GUI from './containers/gui.jsx';
...@@ -13,4 +14,6 @@ const appTarget = document.createElement('div'); ...@@ -13,4 +14,6 @@ const appTarget = document.createElement('div');
appTarget.className = styles.app; appTarget.className = styles.app;
document.body.appendChild(appTarget); document.body.appendChild(appTarget);
Modal.setAppElement(appTarget);
ReactDOM.render(<App />, appTarget); ReactDOM.render(<App />, appTarget);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment