diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index b873a37dc..57ced5118 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -718,7 +718,7 @@ function propHasMismatch(el: Element, key: string, clientValue: any): boolean { let actual: any let expected: any if (key === 'class') { - actual = el.className + actual = el.getAttribute('class') expected = normalizeClass(clientValue) if (actual !== expected) { mismatchType = mismatchKey = `class`