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

Can't create column groups via v-for loop #1754

Closed
jtuchel opened this issue Nov 15, 2021 · 2 comments
Closed

Can't create column groups via v-for loop #1754

jtuchel opened this issue Nov 15, 2021 · 2 comments

Comments

@jtuchel
Copy link

jtuchel commented Nov 15, 2021

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

Based on the docs https://primefaces.org/primevue/showcase/#/datatable/colgroup I want to create dynamic column groups via code. When hardcoding the HTML everything works fine.

Working demo: https://codesandbox.io/s/proud-voice-myuxr

CodeSandbox Case (Bug Reports)

Demo showing the error: https://codesandbox.io/s/cool-snow-lrcg0?file=/src/DataTableColGroupDemo.vue

Current behavior
When trying to create the column groups via code I get the following error

image

Expected behavior
I would expect the same result as seen in the working demo. The column headers should look like

image

Minimal reproduction of the problem with instructions
Have a look at the file DataTableColGroupDemo.vue

What is the motivation / use case for changing the behavior?
If this is a bug it would be nice having this fixed to create dynamic column groups via code :)

Please tell us about your environment:

  • OS: Linx/Win
  • IDE: VSC
  • Package Manager: npm
  • Vue version: 3.1.5

  • PrimeVue version: 3.8.2

  • Browser: Checked with Chrome and Firefox

@tugcekucukoglu
Copy link
Member

Duplicate #1630

@matthiashermsen
Copy link

@tugcekucukoglu I saw that you have already fixed the error on master ( a51f26c )

Do you know if there are any plans for a next release containing this fix any time soon? (v3.8.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants