gregnb / gregnb/mui-datatables
responsiveStacked Cannot read properties of undefined (reading 'down')
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
Since the update my table does not work and I've got this error
```
TypeError: Cannot read properties of undefined (reading 'down')
defaultTableStyles
src/MUIDataTable.js:59
56 | height: '100%',
57 | },
58 | // deprecated, but continuing support through v3.x
> 59 | responsiveStacked: {
| ^ 60 | overflow: 'auto',
61 | [theme.breakpoints.down('md')]: {
62 | overflow: 'hidden',
```
## Expected Behavior
Table should render like before
## Your Environment
| Tech | Version |
|--------------|---------|
| Material-UI | 5.0.6 |
| MUI-datatables | 4.0.0 |
| React | 17.0.2 |
| browser | Edge |
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in src/MUIDataTable.js around defaultTableStyles and the responsiveStacked entry at line 59. Reproduce the error with Material-UI 5.0.6, MUI-datatables 4.0.0, and React 17.0.2, then inspect why theme.breakpoints is undefined. Done means the table renders without this error and responsiveStacked behaves as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100