Releases: yahoo/react-stickynode
Change function to es6 syntax
#33 - Change function to es6 syntax
Toggling sticky behavior
fix Sticky not being fixed when calling window.scrollTo()
#32 - fixed Sticky not being fixed when calling window.scrollTo()
Compatible with React@15 and [email protected]
Now Sticky support React@15 as well!
Thank @roderickhsiao
Introduce State Change Handling
In many situations, we need to do something according to sticky status. Previously, we had contextual class to help us know sticky status, now we have a callback function! Thank you @eligolding.
https://github.com/yahoo/react-stickynode#handling-state-change
Fix Sticky recalculation issue
Fix that Sticky doesn't recalculate dimension when it's parent gets updated.
Fix some issues
Fixed the issue that Sticky is in FIXED status and its height gets changed, it will be always FIXED.
Introduce active class
We introduced a prop activeClass
which will set to Sticky class when it is in fixed status. By default, the value of the prop is active
. This feature provide flexibility to users to do more their own stuffs.