reactjs - Shadow DOM retargeting and Radium :hover -


i ran issue while using react inside shadow dom. i've been using setup similar handle event retargeting.

https://github.com/lukasbombach/react-shadow-dom-retarget-events/blob/master/index.js

radium ':hover' doesn't work when wrapping react components

the issue radium uses onmouseenter , onmouseleave. because of way bubbling works these events won't see these events firing when interacting elements inside shadow dom. solution jeff dolle , worked out dispatch onmouseenter events when onmouseover events firing target element , onmouseleave events when onmouseout events firing.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -