Releases: maslianok/react-resize-detector
Releases · maslianok/react-resize-detector
v2.2.0
v.2.1.0
Add resizableElementId
prop: (string) Id of the element we want to observe. If no one provided, parentElement of the component will be used.
In some situations, complex layouts, the resizer cannot be set as child of the desired element to be watched for resize. This new property allow coder to hard-code a element id instead of use the immediate parentElement of the component.
Thanks @MoleDJ
v.2.0.0
The approach to handle element resizes was rewritten from scratch.
Now it uses ResizeObserver with polyfill which allows you to use the native implementation in modern browsers!
Added new prop skipOnMount
- (Bool) do not trigger onResize when a component mounts. Default: false.
React v.16
Add React v16 support (@jameswomack)