Skip to content

Commit

Permalink
fix(ssr): fix hydration prop mismatch check for class on SVG elements
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 19, 2023
1 parent 8f339ea commit e8448b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit e8448b0

Please sign in to comment.