Skip to content

[Autocomplete] Fix label shrink issue when renderValue is used with empty array in multiple mode #46047

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Apr 30, 2025

Fixes #46037

Regression from #45734

We didn't consider to not render startAdornment due to which the label is shrinked when empty value is provided in multiple mode with custom renderValue prop.

Before: https://codesandbox.io/p/sandbox/stupefied-snowflake-wsw376
After: https://codesandbox.io/p/devbox/hidden-haze-f3rzz7

@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! regression 🐛 A bug, but worse labels Apr 30, 2025
@mui-bot
Copy link

mui-bot commented Apr 30, 2025

Netlify deploy preview

https://deploy-preview-46047--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 8428dd1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! regression 🐛 A bug, but worse
Projects
None yet
3 participants