Skip to content

Commit

Permalink
Render empty image-gallery-slide on lazyload
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin committed Jan 22, 2017
1 parent 4c2156c commit 0b040d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ export default class ImageGallery extends React.Component {
style={Object.assign(this._getSlideStyle(index), this.state.style)}
onClick={this.props.onClick}
>
{showItem ? renderItem(item) : <div style={{ height: '100%' }}></div>}
{showItem && renderItem(item)}
</div>
);

Expand Down

0 comments on commit 0b040d3

Please sign in to comment.