diff --git a/src/react/modals/modals.js b/src/react/modals/modals.js index 31b63bdd8..3d3279340 100644 --- a/src/react/modals/modals.js +++ b/src/react/modals/modals.js @@ -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