You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the spreadsheet component inside of a project that is using MUI as its main component library. I am overriding several components using the following props
I am currently having an issue where the styles of the spreadsheet are overwriting the styles given to each of my components via the sx property. It looks like the react-spreadsheet styles are being added at the end of my <head> tag on first load of the page. On a page refresh, the react-spreadsheet styles seem to load before any of the mui styles, which corrects the styling.
After some digging, it looks like the styles for react-spreadsheet are currently being generated via javascript with the following block.
My guess is since these styles are being generated via JS instead of just being imported in an existing stylesheet, this function just gets run after all of the MUI styles are built. Is there any way I can make the component insert the styles at the top of the head tag? It looks like the function supports a ref.insertAt === 'top' condition, but there is no way to set this value.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello!
I am using the spreadsheet component inside of a project that is using MUI as its main component library. I am overriding several components using the following props
I am currently having an issue where the styles of the spreadsheet are overwriting the styles given to each of my components via the sx property. It looks like the
react-spreadsheet
styles are being added at the end of my<head>
tag on first load of the page. On a page refresh, thereact-spreadsheet
styles seem to load before any of themui
styles, which corrects the styling.After some digging, it looks like the styles for
react-spreadsheet
are currently being generated via javascript with the following block.My guess is since these styles are being generated via JS instead of just being imported in an existing stylesheet, this function just gets run after all of the MUI styles are built. Is there any way I can make the component insert the styles at the top of the head tag? It looks like the function supports a
ref.insertAt === 'top'
condition, but there is no way to set this value.Thanks!
The text was updated successfully, but these errors were encountered: