reactScrollbar icon indicating copy to clipboard operation
reactScrollbar copied to clipboard

Nested scrollbars in separate render contexts

Open jimmed opened this issue 7 years ago • 1 comments

Thanks to a series of unfortunate decisions, I'm rendering a scrollarea inside another scrollarea, using ReactDOM.unstable_renderComponentIntoSubtree.

Normally, when rendering nested scrollareas, wheel/keyboard events aren't propagated up to their parents, as fixed in #40. However, since I'm no longer in the same component tree, events are still propagated up to the outer scroll area.

Unfortunately I haven't had time to produce a jsfiddle/similar test case to demonstrate, but I will do when I get a few moments this evening.

jimmed avatar Mar 07 '17 10:03 jimmed

(Successfully worked around this issue using react-portal to render into a different part of the DOM)

jimmed avatar Mar 07 '17 17:03 jimmed