-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Filter text input does not work if is inside a Dialog #2230
Comments
Hi @incompl maybe I'm missing something but I wasn't able to reproduce the issue using the example you provided, maybe the codesandbox link is not up to date? |
With a Dialog, it reproduces https://codesandbox.io/s/datagrid-in-dialog-filter-bug-forked-y54q6?file=/demo.js. |
@DanailH Sorry about that, I guess my sandbox didn't save somehow. I reopened it and it had my fix, then I refreshed and it was gone. In any case, the sandbox that @oliviertassinari provided is the same thing that mine contained. [edit] I believe mine is properly updated now. |
By default I seems that the https://codesandbox.io/s/datagrid-in-dialog-filter-bug-forked-plub7 |
This is actually a bug in the There are 3 options to solve your problem:
<DataGrid componentsProps={{ panel: { disablePortal: true } }} /> Using this option, you have to update your CSS to disable the |
Closing per 1. it's already fixed in Material UI v5. It's about portal support in TrapFocus. |
I think option 2 is the best choose, i was try , fixed , MUI v5 |
Current Behavior 😯
When a DataGrid is in a Dialog and you try to add a filter, the text input for the filter doesn't get a cursor when you click on it as if it's disabled. (I don't believe it's really disabled since it has the hover behavior of being enabled)
Expected Behavior 🤔
Filtering should work normally if a Dialog
Steps to Reproduce 🕹
https://codesandbox.io/s/datagrid-in-dialog-filter-bug-ix616
Steps:
Context 🔦
We have a home grown version of this library that we would like to replace with DataGrid and I found this issue while evaluating it. We use tables in Dialogs for operations like data imports where you select rows to import.
Your Environment 🌎
Codesandbox.io and Chrome 92.0.4515.107
Order id 💳
I am an open source user 🥳
The text was updated successfully, but these errors were encountered: