react-grid-gallery
Advanced tools
Changelog
v0.2.1 / 2016-09-11
Fixes Bug where updating an image caused wrong aspect due to thumb not resizing. Bug caused by using array index as react key rather than something unique to the image. Thanks to cust0dian for the pull request which fixes this issue by assigning src attribute as key.
Fixes bug where only thumbnails are updated when images props changes, meaning re-render doesn't happen until window is resized. Thanks again to cust0dian for the pull request which fixes this issue.
Changelog
v0.2.0 / 2016-09-03
Construction of thumbnail images and image rows removed from render. Thumbnails and rows now only rebuilt when container size changes.
selectedImages
state now set via props change.
onSelectedImagesChange
callback now called directly from onToggleSelected
. Previously, a combination of setting selectedImages
state and triggering onSelectedImagesChange
inside componentWillUpdate
caused a double render.
Internal image access now via state instead of props.
Thumbnail generation now atomic function rather than whole array at once.
Changelog
v0.1.14 / 2016-08-22
selectedImages
state set on componentWillReceiveProps
allowing selections from outside component to trigger state update.Changelog
v0.1.13 / 2016-08-22
ref
string with ref
callback. Fixes multiple react owner issue when using react-grid-gallery inside a reagent project :)Changelog
v0.1.12 / 2016-08-22
ReactDOM.findDOMNode(this)
with ref, removed react-dom depsChangelog
v0.1.10 / 2016-08-21
Added option to allow disabling of lightbox image display. enableLightbox
(PropType.bool, default true
)
Added option to allow passing in of function to execute on thumbnail click. onClickThumbnail
(PropType.func, default openLightbox
)
Changelog
v0.1.9 / 2016-08-19
enableImageSelection: false