Comments in ColumnGroup rows are rendered as <th> elements #1368
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
primevue/src/components/datatable/TableHeader.vue
renders comments inColumnGroup
rows asth
. This is because there is a loop over the row children which does not check whether the child is aColumn
or not.Expected behavior
Comments are ignored when rendering.
Minimal reproduction of the problem with instructions
The following example will render seven instead of five columns:
What is the motivation / use case for changing the behavior?
Bugfix.
Please tell us about your environment:
Debian Linux 9; Visual Studio Code 1.57.1; Firefox 78.11.0esr (64-Bit)
Vue version: 3.1.2
PrimeVue version: 3.5.1
Browser: all
The text was updated successfully, but these errors were encountered: