Skip to content

Commit

Permalink
merged #78 fix preloadNextImage propagation to Lightbox
Browse files Browse the repository at this point in the history
  • Loading branch information
benhowell committed Apr 29, 2018
1 parent 723a0e5 commit dbc2f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ class Gallery extends Component {
className="ReactGridGallery"
ref={(c) => this._gallery = c}>
<iframe style={resizeIframeStyles}
ref={(c) => c && c.contentWindow && c.contentWindow.addEventListener('resize', this.onResize) } />
ref={(c) => c && c.contentWindow
&& c.contentWindow.addEventListener('resize', this.onResize) } />
{images}
<Lightbox
images={this.props.images}
Expand Down

0 comments on commit dbc2f7d

Please sign in to comment.