Skip to content

ToggleGroup: Fix bad layout on initial render#9706

Merged
henon merged 1 commit intoMudBlazor:devfrom
danielchalmers:togglegroup-grid-render
Aug 24, 2024
Merged

ToggleGroup: Fix bad layout on initial render#9706
henon merged 1 commit intoMudBlazor:devfrom
danielchalmers:togglegroup-grid-render

Conversation

@danielchalmers
Copy link
Member

Description

When registering the toggle item children, it now marks the state as changed so that the Stylename property will pick up the new columns/rows.

How Has This Been Tested?

visually

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Before, on first render you would see this:

image

followed by:

image

now it correctly looks like this from the start:

image

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added bug Unexpected behavior or functionality not working as intended PR: needs review labels Aug 24, 2024
@danielchalmers danielchalmers requested a review from henon August 24, 2024 02:05
@codecov
Copy link

codecov bot commented Aug 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.78%. Comparing base (28bc599) to head (eaa4f9e).
Report is 460 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9706      +/-   ##
==========================================
+ Coverage   89.82%   90.78%   +0.95%     
==========================================
  Files         412      406       -6     
  Lines       11878    12801     +923     
  Branches     2364     2474     +110     
==========================================
+ Hits        10670    11622     +952     
+ Misses        681      624      -57     
- Partials      527      555      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ScarletKuro
Copy link
Member

Thanks for fixing it. That visual flick was annoying.

@henon henon merged commit fe05746 into MudBlazor:dev Aug 24, 2024
@henon
Copy link
Contributor

henon commented Aug 24, 2024

Epic change ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected behavior or functionality not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants