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

fix(image): Fix height & width mismatch on SSR #5579

Closed

Conversation

becem-gharbi
Copy link
Contributor

solves(#5575)

If the attributes height and width are present they will be checked for hydration mismatch on vue >=v3.4.0 source.

On mount the height and width are automaticaly computed if not assigned. That would lead to mismatch.

The proposed solution is to ignore them when no values are set.

Copy link

vercel bot commented Jan 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
naive-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2024 2:55pm

@becem-gharbi
Copy link
Contributor Author

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

Successfully merging this pull request may close these issues.

2 participants