Skip to content

Commit

Permalink
Enhancement: only Vue.extend() non-VueConstructor arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphschindler authored and bdbch committed May 27, 2022
1 parent 5fef431 commit 9cdd0eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-2/src/VueRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class VueRenderer {
ref!: Vue

constructor(component: Vue | VueConstructor, props: any) {
const Component = Vue.extend(component)
const Component = (typeof component === 'function') ? component : Vue.extend(component)

this.ref = new Component(props).$mount()
}
Expand Down

0 comments on commit 9cdd0eb

Please sign in to comment.