gm0t / react-sticky-el

MIT License
251 stars 47 forks source link

make wrapper unsticky when disabled prop becomes true #71

Closed gaetano-guerriero closed 3 years ago

gaetano-guerriero commented 3 years ago

Currently when disabled property becomes true the wrapperStyles state is not reset to empty.

This means that if the disabled property is changed while the stickyness was active the wrapper wrongly keeps the fixed position.

gm0t commented 3 years ago

@gaetano-guerriero thanks a lot for your fix!