-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[material-ui][Autocomplete] broken when rendered inside a DataGrid row #43976
Comments
I'd say it's a regression of #42494 but I'm not sure. This works fine in v6.1.1 |
Hi @zannager @mj12albert, did you get a chance to look into this regression? For what it's worth, I'm a mui-x premium customer. |
While waiting for a response, I worked around the issue by restoring pre #42494 behavior of using the "click" event instead of the "mousedown" event using a custom component wrapping
Hope this helps someone. And please team can we get a word on this? Cheers, |
Hey @ddolcimascolo, thanks for the report and for pinging me. I'm sorry for the delay. I'm looking into this. |
Thank you very much. Anything you need from me just ask. |
@ZeeshanTamboli if you have some time may I ask you to take a look at this one? I've been debugging, and so far I'm following this lead:
Video: Screen.Recording.2024-10-10.at.17.24.46.movThis happens as the |
cc: @cherniavskii in case you have any suggestions on why this might be happening or where to look for debugging. |
I also thought it might have been the use of hooks inside |
Thanks a lot for investigating. Cheers, |
@DiegoAndai The DataGrid focus management logic kicks in and moves focus back to the cell, this is why
|
Thx for the suggestions, I already know I can refactor these components. But you obviously understood that I provided a very minimal reproduction (that took time to provide) and that the actual components in the application for which I use and pay for mui-x are far much complex, and there are many of them as this paradigm of editing in a Dialog is quite common... This was working in the previous patch release, this has to be considered as a regression. I'm totally fine with refactoring my code if any breaking change in any major version happen, I've been doing this for a long time now. But that's not OK in a patch release. I really love mui and mui-x and I'm willing to keep on supporting the development of both libraries, please consider reverting the change in #42494. Thanks in advance, David |
@ddolcimascolo I should've clarified in my previous comment that reverting the For what it's worth, I'm open to changes on the Data Grid side if necessary. |
Reverting #42494 is the best-looking option at the moment. #42494 introduced other bugs besides this one. There's already a PR for this: #43982, I'm working on it. The reason I haven't merged it yet is because:
I'll come back to it next week. Thanks for your patience. cc: @ZeeshanTamboli |
Thanks a lot to both of you guys for your work on this issue, and for the status update. |
@DiegoAndai I think I can set up a test for it, let me take a look. |
Hi team, Did you get a chance to complete the patch? Thx, |
@ddolcimascolo it's on review (#43982), hopefully it will be out with next week's release. |
#43982 has been merged, and this should be fixed with it. The fix will be included in next week's release. @ddolcimascolo, thank you for your patience. If you have any issues next week, please reach out to @aarongarciah. I'll be out for a couple of weeks, so if you tag me, I won't be able to respond. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @ddolcimascolo How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/serene-parm-nqtpx5
Steps:
Edit
icon on any rowCurrent behavior
Autocomplete is unusable
Expected behavior
Autocomplete works as usual
Context
Nothing special, expect the kinda complex setup with one Dialog per DataGrid row
Your environment
npx @mui/envinfo
Search keywords: autocomplete multiple broken datagrid
The text was updated successfully, but these errors were encountered: