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

DataTable: Hydration attribute mismatch with sortable columns #5046

Closed
Ky6uk opened this issue Jan 8, 2024 · 3 comments · Fixed by #5128
Closed

DataTable: Hydration attribute mismatch with sortable columns #5046

Ky6uk opened this issue Jan 8, 2024 · 3 comments · Fixed by #5128
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Ky6uk
Copy link

Ky6uk commented Jan 8, 2024

Describe the bug

It looks like the code generated on the server is mismatched with the code generated on the client when the property sortable is enabled for the Column component.

It seems like icon SVG IDs generated on the client and server are different.

Reproducer

https://stackblitz.com/edit/primevue-sortable-column-nuxt-bug?file=app.vue

PrimeVue version

3.46.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

Chrome 121

Steps to reproduce the behavior

  1. Open this link.
  2. Open the developer console in the browser.
  3. Click on the reload preview icon.
  4. See a warning in the developer console.
  5. Remove sortable in the Column component.
  6. Click on the reload preview icon.
  7. Everything is fine now.

Expected behavior

The same code is rendered on the server and client without warnings.

@Ky6uk Ky6uk added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 8, 2024
@mertsincan
Copy link
Member

Interesting! I'll check it before the next release.

@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 11, 2024
@mertsincan mertsincan added this to the 3.47.0 milestone Jan 11, 2024
@bp26
Copy link

bp26 commented Jan 15, 2024

The same warnings appear when using Rating and Knob components. Most likely even more components are affected by this. Downgrading to previous versions doesn't help, this bug has been present at least since 3.41.0

@diego-lipinski-de-castro

Same bug with Panel component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants