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:
parent
8b8bf603b1
commit
a1bb5fea55
2 changed files with 5 additions and 1 deletions
5
.changeset/dirty-monkeys-bow.md
Normal file
5
.changeset/dirty-monkeys-bow.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/vue": patch
|
||||
---
|
||||
|
||||
Fixes `class` property hydration error
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue