File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -398,10 +398,11 @@ export function createHydrationFunctions(
398
398
parentComponent . vnode . props . appear
399
399
400
400
const content = ( el as HTMLTemplateElement ) . content
401
- . firstChild as Element & { $cls : string | null }
401
+ . firstChild as Element & { $cls ? : string }
402
402
403
403
if ( needCallTransitionHooks ) {
404
- content . $cls = content . getAttribute ( 'class' )
404
+ const cls = content . getAttribute ( 'class' )
405
+ if ( cls ) content . $cls = cls
405
406
transition ! . beforeEnter ( content )
406
407
}
407
408
@@ -787,7 +788,7 @@ export function createHydrationFunctions(
787
788
* Dev only
788
789
*/
789
790
function propHasMismatch (
790
- el : Element & { $cls ?: string | null } ,
791
+ el : Element & { $cls ?: string } ,
791
792
key : string ,
792
793
clientValue : any ,
793
794
vnode : VNode ,
You can’t perform that action at this time.
0 commit comments