MudBlazor/MudBlazor
HierarchyColumn doesn't apply style or class
Ouverte
#7 529 ouverte le 19 sept. 2023
buggood first issuehas workaround
Métriques du dépôt
- Stars
- (10 394 étoiles)
- Métriques de merge PR
- (Merge moyen 6j 6h) (108 PRs mergées en 30 j)
Description
Bug type
Component
Component name
MudDataGrid
What happened?
In my grid I hide the headers using the style "display:none;". As a result the HierarchyColumn becomes very wide. So I try to add a style and class to it, but it have no effect on the HTML. The style and class is not applied to the HTML element created.
Blazor:
<HierarchyColumn Style="width:56px;" Class="tiny-cell"/>
Output on the page:
<td class="mud-table-cell" style="">...</td>
Expected behavior
The output HTML should contain the style and class like this:
<td class="mud-table-cell" style="width:56px" class="tiny-cell">...</td>
Reproduction link
https://try.mudblazor.com/snippet/wOwnYtPjfZSIepUl
Reproduction steps
- Create a MudDataGrid
- Add a TemplateColumn
- Look at the generated HTML in the browser.
Relevant log output
No response
Version (bug)
6.10.0
Version (working)
No response
What browsers are you seeing the problem on?
Chrome
On what operating system are you experiencing the issue?
Windows
Pull Request
- I would like to do a Pull Request
Code of Conduct
- I agree to follow this project's Code of Conduct