diff --git a/src/components/ModalPortal.js b/src/components/ModalPortal.js index fbf27a81..8d519838 100644 --- a/src/components/ModalPortal.js +++ b/src/components/ModalPortal.js @@ -91,6 +91,14 @@ export default class ModalPortal extends Component { this.focusAfterRender = focus; } + setOverlayRef = (overlay) => { + this.overlay = overlay; + } + + setContentRef = (content) => { + this.content = content; + } + afterClose = () => { focusManager.returnFocus(); focusManager.teardownScopedFocus(); @@ -209,12 +217,12 @@ export default class ModalPortal extends Component { return this.shouldBeClosed() ?
: (