Skip to content

Item param is undefined in Virtual List searchByItem function #3948

@dFelinger

Description

@dFelinger
  • Framework7 version: all

Describe the bug

In searchByItem function in Virtual List item param is undefined when items is replaced by replaceAllItems method i.e. on ajax data and empty items on Virtual List initialization.
This is because in searchbar-class.js searchByItem function calls with items from params - not real items from list.

if (sb.virtualList.params.searchByItem(vlQuery, sb.virtualList.params.items[i], i)) {

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