'Material-table export dropdown view broken
I am having trouble with the Material-Table library in a NextJs project. It works fine for the large part except for the export button which displays a very small and empty dropdown with no text visible. The options to 'export as CSV' and 'export as PDF' are still there and still work, and I am able to select the options due to some padding which makes the buttons barely clickable, but no text is displayed. I have encountered a github page where this issue was raised but the solution basically said that this was resolved in a patch (which obviously is not the case here).
package.json versions:
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.5.23",
"material-table": "^1.63.0",
What I am seeing:
No text is displayed in the dropdown menu
As you can see, both li elements are present in the inspector
What I am expecting to see:
To see a populated dropdown menu as per the documentation..
What my code looks like:
These are my 'options' settings in Material-Table
I have been searching online for a while and have tried numerous different hacks but nothing seems to work, if anybody has an answer to this it would be hugely appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|