Skip to content

Fix dynamic child slot overriding #35

@TimDirks

Description

@TimDirks

In the Dropdown.vue component we try to dynamically override the child's slots to pass them on to the parent. This works fine when served locally but when trying to make a build, rollup will give errors stating Type 'number' is not assignable to type 'Slot' for the Dropdown.vue component.

Same story for the FormDropdown.vue component. However, for that component rollup gives the error Type 'Function' is not assignable to type 'Slot'.

The issue is overriding the child's slots. Dynamically creating NEW slots in a component is fine for rollup.

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