Skip to content

Commit

Permalink
Modals return null when there is no document [#154675375]
Browse files Browse the repository at this point in the history
  • Loading branch information
reidmit committed May 11, 2018
1 parent c56fab3 commit 225765a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/react/modals/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export class BaseModal extends PureComponent {
}

render() {
if (typeof global.document === 'undefined') return null;

const {
disableAnimation, show, animationDuration, animationEasing, className, dialogClassName, title,
size, children
Expand Down

0 comments on commit 225765a

Please sign in to comment.