Skip to content

Options from the extended component are not inherited. #119

Open
@antoumpas

Description

@antoumpas

Hello,

Component options of the base component are not inherited when extending a component.

In the following example the browser throws an error "Error in created hook: "TypeError: Cannot set properties of undefined":

const baseComponent = {
  template: `<div>{{ test }}</div>`,
  props: {
    test: {
      type: Number,
    },
  },
};

const component = {
  extends: baseComponent,
};

customElements.define('my-element', wrap(Vue, component));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions