Skip to content

Commit

Permalink
fallback to document body in Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Oct 31, 2019
1 parent 670fdd3 commit df21816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/components/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class Modal extends Component {
super( props );
this.el = document.createElement( 'div' );
// This class is the outermost wrapper which is present on all Site Kit pages.
this.root = document.querySelector( '.googlesitekit-plugin' );
this.root = document.querySelector( '.googlesitekit-plugin' ) || document.body;
}

componentDidMount() {
Expand Down

0 comments on commit df21816

Please sign in to comment.