rasteiner / k3-whenquery

Conditionally show fields and sections. Better.
MIT License
64 stars 1 forks source link

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

Open georgobermayr opened 1 year ago

georgobermayr commented 1 year ago

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.