Skip to content

Commit

Permalink
Manually Modal.setAppElement to address reactjs/react-modal#267
Browse files Browse the repository at this point in the history
This is a workaround for AllenFang#1087
  • Loading branch information
Victor Nawothnig authored and Victor Nawothnig committed Mar 14, 2017
1 parent 61a5614 commit cc8eb6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/toolbar/ToolBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class ToolBar extends Component {
}

componentWillMount() {
/* Hack to work-around https://github.com/reactjs/react-modal/issues/133 */
Modal.setAppElement('body');

const delay = this.props.searchDelayTime ? this.props.searchDelayTime : 0;
this.debounceCallback = this.handleDebounce(() => {
const { seachInput } = this.refs;
Expand Down

0 comments on commit cc8eb6b

Please sign in to comment.