Skip to content

Popup.vue render error #9

@estern1011

Description

@estern1011

In a project that's transitioning from Vue 2 to Vue 3 we decided to swap from @sum.cumo/vue-datepicker 5.0.0 to version 6.0.0 of this fork. When launching the page we had an issue with this line:

return h('div', this.$slots.default()[0].children.default())
.
We got an error that default in this.$slots.default() was not a function. We were able to fix this issue locally by changing the line to return h('div', this.$slots.default[0].children.default());
Is this because of our Vue 3 transition, or is this an issue with the Popover component? We were confused because we'd expect the repository's demo page to not work correctly if this was an issue with the component itself, but that page works.
If it's an issue with the Popover component, we're happy to submit a PR with our change!

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