Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz authored and diasbruno committed Apr 30, 2020
1 parent 206cfe6 commit 4a120a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ModalPortal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a120a9

Please sign in to comment.