0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

Fix class property Vue hydration error (#9620)

This commit is contained in:
Bjorn Lu 2024-01-06 04:03:47 +08:00 committed by GitHub
parent 8b8bf603b1
commit a1bb5fea55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/vue": patch
---
Fixes `class` property hydration error

View file

@ -4,7 +4,6 @@ import StaticHtml from './static-html.js';
export default (element) =>
async (Component, props, slotted, { client }) => {
delete props['class'];
if (!element.hasAttribute('ssr')) return;
// Expose name on host component for Vue devtools