From 4a120a92216d3dcd2d08e73a645036348d585f61 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Thu, 30 Apr 2020 12:35:27 +0200 Subject: [PATCH] fix linting --- src/components/ModalPortal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ModalPortal.js b/src/components/ModalPortal.js index 8bc0da63..5414c547 100644 --- a/src/components/ModalPortal.js +++ b/src/components/ModalPortal.js @@ -233,7 +233,9 @@ export default class ModalPortal extends Component { // Don't steal focus from inner elements focusContent = () => - this.content && !this.contentHasFocus() && this.content.focus({ preventScroll: true }); + this.content && + !this.contentHasFocus() && + this.content.focus({ preventScroll: true }); closeWithTimeout = () => { const closesAt = Date.now() + this.props.closeTimeoutMS;