react-infinite
react-infinite copied to clipboard
Disable scrolling
I've made a simple change in a forked version which add a "disabled" props. Its simply modifying the overflow-y attribute to hidden or scroll depending on the prop. Could this be something interesting to merge in the main project?
I've personally found it very useful when a list element can be selected and you don`t want to be able to scroll as long as the element is selected.
@DefoyPhilip can you add a test and submit a pull request?
Sure! There it is: https://github.com/seatgeek/react-infinite/pull/132 @garetht