skratchdot / react-bootstrap-multiselect

A multiselect component for react (with bootstrap). This is a react port of bootstrap-multiselect.
http://projects.skratchdot.com/react-bootstrap-multiselect/
Other
119 stars 61 forks source link

Page scrolls when list reaches end #23

Closed rammoozz closed 8 years ago

rammoozz commented 8 years ago

Hello,

I am using react-bootstrap-multiselect in several spots, and I have noticed that (even when the mouse is still inside the component) the scroll event propagates to body, causing it to scroll, when you've reached the end of the list.

IS this something I can apply? Or does it need a fork. I'm thinking it should go something like this... Check if mouse is on component, Capture Scroll event, React based on mouse position

Upon inspection, I think this can be handled without the need to change any of the source code, since I have a wrapping DIV for the components. Thanks.