diff --git a/package.json b/package.json index dfe8549f..284ca2aa 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "prettier": "^1.7.4", "react": "^16.0.0", "react-dom": "^16.0.0", - "react-lifecycles-compat": "^1.1.0", "react-router": "^4.2.0", "react-router-dom": "^4.2.2", "should": "^13.1.0", @@ -64,6 +63,7 @@ "dependencies": { "exenv": "^1.2.0", "prop-types": "^15.5.10", + "react-lifecycles-compat": "^3.0.0", "warning": "^3.0.0" }, "peerDependencies": { diff --git a/src/components/Modal.js b/src/components/Modal.js index 6beedf12..b8246a64 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -5,7 +5,7 @@ import ModalPortal from "./ModalPortal"; import * as ariaAppHider from "../helpers/ariaAppHider"; import SafeHTMLElement, { canUseDOM } from "../helpers/safeHTMLElement"; -import polyfill from "react-lifecycles-compat"; +import { polyfill } from "react-lifecycles-compat"; export const portalClassName = "ReactModalPortal"; export const bodyOpenClassName = "ReactModal__Body--open";