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

string - Using python and postgres, variables within execute function? -

python - Getting ESC characters and non-printables from UDP socket / buffer -