Jelajahi Sumber

chore: fix typo [ci skip] (#547)

djy0 6 tahun lalu
induk
melakukan
fc48e43ac7
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      packages/runtime-dom/src/modules/class.ts

+ 3 - 3
packages/runtime-dom/src/modules/class.ts

@@ -12,9 +12,9 @@ export function patchClass(el: Element, value: string | null, isSVG: boolean) {
   } else {
   } else {
     // if this is an element during a transition, take the temporary transition
     // if this is an element during a transition, take the temporary transition
     // classes into account.
     // classes into account.
-    const transtionClasses = (el as ElementWithTransition)._vtc
-    if (transtionClasses) {
-      value = [value, ...transtionClasses].join(' ')
+    const transitionClasses = (el as ElementWithTransition)._vtc
+    if (transitionClasses) {
+      value = [value, ...transitionClasses].join(' ')
     }
     }
     el.className = value
     el.className = value
   }
   }