fix(ssr): fix hydration prop mismatch check for class on SVG elements

This commit is contained in:
Evan You 2023-12-19 18:09:42 +08:00
parent 8f339ea144
commit e8448b018d
1 changed files with 1 additions and 1 deletions

View File

@ -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`