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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -