Skip to content
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

DataGrid: Fix empty footer row when using SelectColumn with ShowInFooter=false #7747

Conversation

igotinfected
Copy link
Contributor

@igotinfected igotinfected commented Nov 9, 2023

Description

Fixes an issue with the SelectColumn when setting ShowInFooter to false.

Previously this would render a footer row (more specifically some td's with the footer-cell CSS class) that would take up some height.

image

Open to suggestions for a better solution if there is one for this case, I admit I didn't go deeper into the FooterTemplate rendering on the MudDataGrid side of things.

Reproduction (docs example with ShowInFooter = false): https://try.mudblazor.com/snippet/QOwHlvajhmmyCBhM

How Has This Been Tested?

bUnit tested

Types 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)

Previous behaviour:

firefox_FUNYj65Xl4.mp4

New behaviour:

firefox_DU3DTeB3yy.mp4

Checklist:

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

Fixes an issue with the `SelectColumn` when setting `ShowInFooter` to
`false`.

Previously this would render a footer row (more specifically some
`td`'s with the `footer-cell` CSS class) that would take up some height.
@github-actions github-actions bot added bug Something does not work as intended/expected PR: needs review labels Nov 9, 2023
Copy link

codecov bot commented Nov 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.44%. Comparing base (f70bb9e) to head (eb03704).

❗ Current head eb03704 differs from pull request most recent head 07c4b9c. Consider uploading reports for the commit 07c4b9c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #7747      +/-   ##
==========================================
- Coverage   89.78%   87.44%   -2.34%     
==========================================
  Files         411      393      -18     
  Lines       11840    11641     -199     
  Branches     2363     2330      -33     
==========================================
- Hits        10630    10179     -451     
- Misses        682      950     +268     
+ Partials      528      512      -16     

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

@mikes-gh mikes-gh changed the title MudDataGrid: Fix empty footer row when using SelectColumn with ShowInFooter=false DataGrid: Fix empty footer row when using SelectColumn with ShowInFooter=false Feb 1, 2024
Copy link
Contributor

@tjscience tjscience left a comment

Choose a reason for hiding this comment

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

This looks good, @igotinfected. Thanks!

@ScarletKuro
Copy link
Member

Ugh, I somehow missed this. I added tj to review, but didn't subscribe on updates...
@igotinfected would it be hard for you to solve the conflicts?

@igotinfected
Copy link
Contributor Author

@ScarletKuro Been busy with work on my end too so thanks for the reminder! Fixing it up right now.

@igotinfected
Copy link
Contributor Author

@ScarletKuro Done, good to go!

@ScarletKuro ScarletKuro merged commit fc8cbcf into MudBlazor:dev Apr 7, 2024
2 checks passed
@igotinfected igotinfected deleted the fix/empty-footer-row-when-using-select-column branch April 7, 2024 11:16
danielchalmers pushed a commit to danielchalmers/MudBlazor that referenced this pull request Apr 7, 2024
biegehydra pushed a commit to biegehydra/MudBlazor that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants