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

input hydration mismatch with SSR #10057

Closed
becem-gharbi opened this issue Jan 9, 2024 · 1 comment
Closed

input hydration mismatch with SSR #10057

becem-gharbi opened this issue Jan 9, 2024 · 1 comment

Comments

@becem-gharbi
Copy link

Vue version

3.4.6

Link to minimal reproduction

https://stackblitz.com/edit/github-dbb6s1?file=app.vue

Steps to reproduce

Run npm run dev and check browser's console.

What is expected?

The input element should be rendered without hydration issues.

What is actually happening?

image

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.14.0 - /usr/local/bin/pnpm
  npmPackages:
    vue: ^3.4.6 => 3.4.6

Any additional comments?

This issue is related to the feature introduced on (#5953).

When binding the attribute readonly and setting it to false the mismatch warning is thrown. The issue is probably related to the fact that the key represents the attribute name which is readonly. However the key of the HTML element is readOnly.

? el[key as keyof typeof el]

@KazariEX
Copy link
Contributor

nuxt-img has the same issue.

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

Successfully merging a pull request may close this issue.

2 participants