adazzle / react-data-grid

Feature-rich and customizable data grid React component
https://adazzle.github.io/react-data-grid/
Other
6.91k stars 2.17k forks source link

Does RDG support mount in ShadowDOM? #2737

Open noru opened 2 years ago

noru commented 2 years ago

I'm using RDG with document and everything is okay. When I mount my app in a shadowDOM, the RDG runs into an infinite vertical expanding and break the app. And I found that the <style> is mounted in <header> instead of shadowRoot.


Seems the css-in-js lib that RDG using linaria doesn't address how to use with shadowDOM...

amanmahajan7 commented 2 years ago

Not sure if RDG can handle this 🤔 Did you try opening an issue in the linaria repo? https://github.com/callstack/linaria/issues

IdanGoor commented 2 years ago

@noru I'm also facing this problem. Did you manage to solve it or find a workaround for it?

noru commented 2 years ago

@IdanGoor I copy/paste the styles to a css file and mount it myself. It works until you bump the version.