mirror of https://github.com/vuejs/core.git
fix(ssr): fix hydration prop mismatch check for class on SVG elements
This commit is contained in:
parent
8f339ea144
commit
e8448b018d
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue