Mui-datatables: Recurring errors flooding console

Created on 24 Jan 2019  路  7Comments  路  Source: gregnb/mui-datatables

There are two errors which I have no idea how to fix that are thrown anytime a rerender happens:

image
I have looked at all the solutions as to how to remove the typography error, to which nothing has worked. Also, I am styling the paper like so:

MUIDataTable: { paper: { boxShadow: "none" }, responsiveScroll: { height: "305px" } },

This has been exactly how it is done in some examples, so I do not understand why it throws an error, because it works too!

Most helpful comment

@iChaosren Hmm, I think I forced the removal of the box shadow on the table by targeting the MuiPaper class instead of MUIDataTable I had to force the override with !important

overrides: {
    MuiPaper: {
      root: {
        boxShadow: "none !important",
       },
    },

All 7 comments

The typography issue should be addressed in beta-53. I will look into the other issue tomorrow

+1

@aishmitk I think I was able to prevent the typography error by applying a custom theme to the table with this typography setting?

createMuiTheme({
  typography: {
    useNextVariants: true,
  },
  overrides: {...}

@william-chu
I managed to do the same, but I can't remove the first error message regarding the: Fix the paper key
Without removing my styling that is...

If there's a similar solution for the first message I haven't found it.

@iChaosren Hmm, I think I forced the removal of the box shadow on the table by targeting the MuiPaper class instead of MUIDataTable I had to force the override with !important

overrides: {
    MuiPaper: {
      root: {
        boxShadow: "none !important",
       },
    },

@william-chu
Awesome!
Thanks!!!

Sweet, thanks a bunch

Was this page helpful?
0 / 5 - 0 ratings

Related issues

geekashu picture geekashu  路  3Comments

krsandesh picture krsandesh  路  3Comments

Andy1408 picture Andy1408  路  4Comments

kylane picture kylane  路  3Comments

pranavtheway picture pranavtheway  路  3Comments