Skip to content

Kirby 4: Core Components can no longer be extended when using this plugin #20

@georgobermayr

Description

@georgobermayr

In Kirby 4, when I try to extend a core component, this is no longer possible, when using this plugin.

For instance:

"k-header": {
    extends: "k-header",
    mounted() {
        console.log("mounted my header");
    },
    template: "<div>foo</div>",
},

The template is not used. Instead the original component of Kirby is still being used.

The reason for this seems to be with the addModelWatch function in this plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions