I'm trying to upgrade from the old slot-scope
syntax to the relatively new v-slot
syntax but it doesn't seem to work.
Steps to reproduce the behavior:
Form.vue
file in this codesandboxslot-scope
syntax, just let the app compile and use the login form (enter some text in both the fields)What am I doing wrong?
your render function in FormGroup.vue returns more than one VNode. Try that:
render(createElement) {
return createElement(
"div",
this.$scopedSlots.default({
errors: this.errors,
invalid: this.invalid,
})
);
}