mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.11k stars 1.27k forks source link

[Data Grid] Header Filters breaks if filterOperators is set to undefined #13626

Closed sleon-panw closed 2 months ago

sleon-panw commented 3 months ago

Steps to reproduce

Send this prop to the DataGridPremuim component:

filterOperators:undefined,

Current behavior

TypeError: Cannot read properties of undefined (reading 'InputComponent') at index-Gm61WJDT.js:47281:135 at renderWithHooks (chunk-4YFJ7OCR.js:18437:26) at updateForwardRef (chunk-4YFJ7OCR.js:21214:28) at beginWork (chunk-4YFJ7OCR.js:22835:22) at HTMLUnknownElement.callCallback2 (chunk-4YFJ7OCR.js:10563:22) at Object.invokeGuardedCallbackDev (chunk-4YFJ7OCR.js:10588:24) at invokeGuardedCallback (chunk-4YFJ7OCR.js:10622:39) at beginWork$1 (chunk-4YFJ7OCR.js:26654:15) at performUnitOfWork (chunk-4YFJ7OCR.js:26087:20) at workLoopSync (chunk-4YFJ7OCR.js:26026:13)

Expected behavior

No response

Context

No response

Your environment

No response

Search keywords: data grid Order ID: I've been emailing support and they gave me this number 19977

MBilalShafi commented 3 months ago

Please provide a minimal reproduction test case with the latest version. This would help a lot 👷.

A live example would be perfect. You can find examples and guides on how to find templates in our docs with which you can provide examples for your specific use case: Support - Bug reproduction.

Thank you! 🙇🏼

github-actions[bot] commented 2 months ago

The issue has been inactive for 7 days and has been automatically closed.