Skip to content

Commit 4a120a9

Browse files
xaviergonzdiasbruno
authored andcommittedApr 30, 2020
fix linting
1 parent 206cfe6 commit 4a120a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/components/ModalPortal.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ export default class ModalPortal extends Component {
233233

234234
// Don't steal focus from inner elements
235235
focusContent = () =>
236-
this.content && !this.contentHasFocus() && this.content.focus({ preventScroll: true });
236+
this.content &&
237+
!this.contentHasFocus() &&
238+
this.content.focus({ preventScroll: true });
237239

238240
closeWithTimeout = () => {
239241
const closesAt = Date.now() + this.props.closeTimeoutMS;

0 commit comments

Comments
 (0)