You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a prop to manually set pin/unpin state, e.g. to enable a hide button that unpins when pinned if user wants to hide headroom without scrolling down.
Reacted by Robert Apelian, Scott Brandley and Luke Barrett
Activity
denkristoffer commentedon Oct 11, 2017
You can set a reference and use
this.ref.pin()orthis.ref.unpin().DocCaliban commentedon Oct 7, 2018
Going to agree with @AndersDJohnson and point out that using a ref is discouraged.
https://reactjs.org/docs/refs-and-the-dom.html#dont-overuse-refs
barrettluke commentedon Jan 17, 2019
translateY for unpin is HARDCODED '-100%' please change this.