-
-
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] Fix the options list being added to the DOM in freeSolo
mode even when there are no options, causing style problems
#41300
Conversation
Adding condition to add popper to DOM only when the loading is happening or options are greater than 0
Bringing out the Popper container to a function and adding the popper to every condition, so that we can add a condition not to show popper when options are empty and loading is false
Netlify deploy previewhttps://deploy-preview-41300--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rakeshmusturi Thanks for the pull request. The AutocompletePopper
and AutocompletePaper
components are shared among all three conditions. Can you consolidate them in one place for reuse? Also, please address the failing CI.
freeSolo
mode, causing style problems
freeSolo
mode, causing style problems freeSolo
mode even when there are no options, causing style problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rakeshmusturi Thanks for the pull request. I've made the expected changes, and it looks good to me.
…OM in `freeSolo` mode even when there are no options, causing style problems (mui#41300) Co-authored-by: ZeeshanTamboli <[email protected]>
…OM in `freeSolo` mode even when there are no options, causing style problems (mui#41300) Co-authored-by: ZeeshanTamboli <[email protected]>
Fixes #40843
Adding condition to add popper to DOM only when the loading is happening or options are greater than 0