File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ export function normalizeChildren (children: any): Array<VNode> {
10
10
if ( typeof children === 'function' ) {
11
11
children = children ( )
12
12
}
13
- if ( typeof children === 'string' ) {
14
- return [ new VNode ( undefined , undefined , undefined , children ) ]
13
+ if ( isPrimitive ( children ) ) {
14
+ return [ new VNode ( undefined , undefined , undefined , String ( children ) ) ]
15
15
}
16
16
if ( Array . isArray ( children ) ) {
17
17
const res = [ ]
@@ -22,7 +22,7 @@ export function normalizeChildren (children: any): Array<VNode> {
22
22
res . push . apply ( res , normalizeChildren ( c ) )
23
23
} else if ( isPrimitive ( c ) ) {
24
24
// convert primitive to vnode
25
- res . push ( new VNode ( undefined , undefined , undefined , c ) )
25
+ res . push ( new VNode ( undefined , undefined , undefined , String ( c ) ) )
26
26
} else if ( c instanceof VNode ) {
27
27
res . push ( c )
28
28
}
You can’t perform that action at this time.
0 commit comments