[joy-ui][Autocomplete] Fix text overflow in Chip#40229
[joy-ui][Autocomplete] Fix text overflow in Chip#40229ZeeshanTamboli merged 5 commits intomui:masterfrom PunitSoniME:fix/40183-chip-text-overflow-in-autocomplete
Conversation
Netlify deploy previewhttps://deploy-preview-40229--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
|
Could you provide a snapshot or sandbox that fixes the issue? |
Sure @siriwatknp Check here - https://deploy-preview-40229--material-ui.netlify.app/material-ui/react-autocomplete/#fixed-options Modify first option to lengthy value like below
Now select the modified item, it will look like below |
siriwatknp
left a comment
There was a problem hiding this comment.
I think the proper solution is to add min-width: 0 to the ChipRoot.
Screen.Recording.2567-01-04.at.16.16.59.mov
PunitSoniME
left a comment
There was a problem hiding this comment.
Changes implemented
There was a problem hiding this comment.
Argos CI detected one unexpected change - https://app.argos-ci.com/mui/material-ui/builds/22470/69426774. So should this change be applied only to the Chip rendered for Autocomplete - https://github.com/mui/material-ui/blob/master/packages/mui-joy/src/Autocomplete/Autocomplete.tsx#L413 and on the demos having custom chips with renderTags prop?
That makes sense, thanks @ZeeshanTamboli. Can you update the PR? |
ZeeshanTamboli
left a comment
There was a problem hiding this comment.
I made the expected changes. @PunitSoniME Thanks for opening the PR.
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>

resolves #40183