Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
fix: silence react-modal warning by setting appElement
Browse files Browse the repository at this point in the history
  • Loading branch information
fritz-c committed Dec 17, 2017
1 parent 9fa3546 commit a26d597
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/react-image-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,9 @@ class ReactImageLightbox extends Component {
}}
style={modalStyle}
contentLabel={translate('Lightbox')}
appElement={
typeof window !== 'undefined' ? window.document.body : undefined
}
>
<div // eslint-disable-line jsx-a11y/no-static-element-interactions
// Floating modal with closing animations
Expand Down

0 comments on commit a26d597

Please sign in to comment.