Skip to content

Commit dbc2f7d

Browse files
author
ben
committed
merged #78 fix preloadNextImage propagation to Lightbox
1 parent 723a0e5 commit dbc2f7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Gallery.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ class Gallery extends Component {
264264
className="ReactGridGallery"
265265
ref={(c) => this._gallery = c}>
266266
<iframe style={resizeIframeStyles}
267-
ref={(c) => c && c.contentWindow && c.contentWindow.addEventListener('resize', this.onResize) } />
267+
ref={(c) => c && c.contentWindow
268+
&& c.contentWindow.addEventListener('resize', this.onResize) } />
268269
{images}
269270
<Lightbox
270271
images={this.props.images}

0 commit comments

Comments
 (0)