Skip to content

Issue when filtering list results in zero elements #6

Closed
@getflourish

Description

@getflourish

I’m using this component with a list that can be filtered. It is possible that the filtered list returns an array of zero items which results in:

[Vue warn]: Error when rendering component <vue-virtual-scroll-list>
TypeError: undefined is not an object (evaluating 'slots.length')

I guess, we can’t assume that slots are always available as you try here:
https://github.com/tangbc/vue-virtual-scroll-list/blob/master/index.js#L108

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions