Open dmarciano opened 3 months ago
This is not reproducible in my local instance, but on Stackblitz as described by @dmarciano.
I will add this to the board, but as this is possibly only happening on Stackblitz this might have a relatively low priority. Thanks for raising this anyways @dmarciano 🙇🏼
Steps to reproduce
Link to live example: Click the Edit in StackBlitz icon under the Predefined dimensions section of Data Grid - Layout
Steps:
<div>
of the<DataGrid>
component (e.g., add an extra whitespace between{{
andheight
Current behavior
A![image](https://github.com/mui/mui-x/assets/20006727/eeb4aa25-0a89-460f-bc95-920c7874f5fd)
useResizeContainer
error is reported in the browser console:Expected behavior
No console error has the
height
andwidth
are definedContext
Remove/prevent false positive errors
Your environment
``` System: OS: Windows 10 10.0.19045 Binaries: Node: 18.18.0 - C:\Program Files\nodejs\node.EXE npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD pnpm: Not Found Browsers: Chrome: Version 120.0.6099.225 (Official Build) (64-bit) Edge: Version 120.0.2210.144 (Official build) (64-bit) npmPackages: @emotion/react: 11.11.4 @emotion/styled: 11.11.0 @mui/icons-material 5.15.12 @mui/material 5.15.12 @mui/x-data-grid 6.19.6 @mui/x-datagrid-generator 6.19.6 @types/react 18.2.64 @types/react-dom 18.2.21 react 18.2.0 react-dom 18.2.0 typescript 5.4.2 ```npx @mui/envinfo
Search keywords: datagrid, useResizeContainer