My first DEV Community release announcement! Hopefully I tagged it correctly.
React Inner Image Zoom version 3.0.0 went out earlier this week with a handful of bug fixes, test and build improvements, and one major change.
What's the big thing to look out for? By popular demand, the imgAttributes prop was added to pass down (almost) any valid React img attributes in a single object instead of as individual props. That means scrSet, sizes, alt, and title are gone but in exchange you get all the data attributes and event handlers you could want. I haven't submitted updated type definitions to DefinitelyTyped yet but I'll try to get that done in the next few days.
This release also included a handy new Changelog so I would be remiss not include the official record here:
Changed
- Replaced
srcSet,sizes,alt, andtitleprops withimgAttributesto set the original image's attributes. - Show close button when
moveTypeis set to "drag" on all breakpoints. - Switched from
setTimeouttoonTransitionEndto check that zoomed image has finished fading out.
Added
- This handy CHANGELOG.
Fixed
- Added
stopPropagationon touchmove to prevent events below fullscreen modal.
If you run into any bugs, please let me know in the GitHub issues.
Top comments (0)