react-vega icon indicating copy to clipboard operation
react-vega copied to clipboard

Re-rendering with className causes react-embed to lose styling

Open agirton opened this issue 2 years ago • 0 comments

Hello!

Noticed that due to the way react-embed applies the className to the parent dom node, if a component re-renders and it uses the className prop on ReactVega it causes the react-embed className to be dropped. You can see an example here in codesandbox if you add className="hi" the embed styling gets dropped. A work around for us is we can add a wrapper div and not apply a className to this component.

agirton avatar Aug 12 '22 21:08 agirton