[data grid] disabled variants leads to runtime error #17812
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps:
Open this link to live example: https://stackblitz.com/edit/ritphqqu?file=src%2Ftheme.ts,src%2Findex.tsx
Comment in to have the variant
body1
disabled as documented here: https://mui.com/material-ui/customization/typography/#adding-amp-disabling-variantsCurrent behavior
DataGrid crash with console error:
Expected behavior
DataGrid does not crash or at least does not depend on hardcoded typography variants
Context
We use a custom theme where all the 13 default variants are disabled.
Your environment
No response
Search keywords: DataGrid, formatFont, variants, body1, caption
Order ID: 107362
The text was updated successfully, but these errors were encountered: