-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
MudCarousel: Fix UI update of bullets on item add #11873
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
MudCarousel: Fix UI update of bullets on item add #11873
Conversation
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.
Code Review
This pull request addresses a UI bug where carousel bullets were not updating upon adding a new item. The change correctly moves StateHasChanged() to be called unconditionally, ensuring the component re-renders. However, the submission lacks a unit test to cover this bug fix. The project's style guide mandates that all logic changes must be accompanied by tests. Adding a test would prevent future regressions of this issue.
versile2
left a comment
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.
Code is simple and sound.
Verified the unit test fails before the code change and passes after.
Visually verified Viewer WASM and Docs BSS to ensure no oddities or artifacts.
|
Thank you! |
Trigger StateHasChanged on MudCarousel.AddItem to render the bullets correctly
Resolves #11798
Checklist