Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/runtime-core/src/apiApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ export function createAppAPI<HostNode, HostElement>(
// TODO directive name validation
if (!directive) {
return context.directives[name] as any
} else {
context.directives[name] = directive
return app
}
context.directives[name] = directive
return app
},

mount(
Expand Down
5 changes: 2 additions & 3 deletions packages/runtime-core/src/h.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ export function h(
}
// props without children
return createVNode(type, propsOrChildren)
} else {
// omit props
return createVNode(type, null, propsOrChildren)
}
// omit props
return createVNode(type, null, propsOrChildren)
} else {
if (isVNode(children)) {
children = [children]
Expand Down