Skip to content

Conversation

@nekoya
Copy link
Contributor

@nekoya nekoya commented Mar 25, 2024

fix #41633

Display loading message even if the options exist.

@ZeeshanTamboli ZeeshanTamboli changed the base branch from master to next March 25, 2024 11:11
@mui-bot
Copy link

mui-bot commented Mar 25, 2024

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against e764cee

@ZeeshanTamboli ZeeshanTamboli added type: bug It doesn't behave as expected. package: material-ui scope: autocomplete Changes related to the autocomplete. This includes ComboBox. type: regression A bug, but worse, it used to behave as expected. labels Mar 25, 2024
@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Autocomplete] Fix handling of loading state with non-empty options [material-ui][Autocomplete] Show options passed to options prop even if loading Mar 25, 2024
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nekoya Thank you for the PR. I've made the necessary changes. See why here: #41633 (comment).

Since we're pushing changes to the next branch, I've updated the base branch to next.

Regarding when the loading state should be displayed, let's discuss it in a separate issue. For now, I've reverted to the previous change from before #41300.

@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Autocomplete] Show options passed to options prop even if loading [material-ui][Autocomplete] Display options provided to the options prop even if loading is true. Mar 25, 2024
@ZeeshanTamboli ZeeshanTamboli merged commit 31d5291 into mui:next Mar 25, 2024
@mnajdova
Copy link
Member

@ZeeshanTamboli please make sure that fixes, especially regressions are covered with tests, otherwise we have no guarantee that this will not break again.

@ZeeshanTamboli
Copy link
Member

ZeeshanTamboli commented Mar 27, 2024

@ZeeshanTamboli please make sure that fixes, especially regressions are covered with tests, otherwise we have no guarantee that this will not break again.

Apologies. Created a PR for adding a test: #41675.

@ZeeshanTamboli ZeeshanTamboli removed the PR: needs test The pull request needs tests. label Mar 27, 2024
ZeeshanTamboli added a commit to ZeeshanTamboli/material-ui that referenced this pull request Mar 27, 2024
… prop even if loading is true. (mui#41634)

Co-authored-by: ZeeshanTamboli <[email protected]>
@nekoya
Copy link
Contributor Author

nekoya commented Apr 2, 2024

@ZeeshanTamboli @mnajdova Thanks for merging. Could this fix be applied to v5 as well? Is there a plan to backport it?

@ZeeshanTamboli
Copy link
Member

ZeeshanTamboli commented Apr 2, 2024

@nekoya Here's the PR that should be merged for v5: #41677.

@oliviertassinari oliviertassinari removed the type: bug It doesn't behave as expected. label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: autocomplete Changes related to the autocomplete. This includes ComboBox. type: regression A bug, but worse, it used to behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[material-ui][Autocomplete] broke backward compatibility with loading state

7 participants