Can bind events to ShadowRoots.

I created a chrome extension with react. And when inserting in the DOM, the styles would collapse with the page.

The solution I found was the most elegant was to create a shadow root and render my react component inside it.

Problem is that the events were not bound properly because of shadow boundaries. Here are my modifications :)