Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

filter: search in a specific field (array) return a list different that the initial state when i clear my filter #14608

@jean-alain-re

Description

@jean-alain-re

I filter from an input an array on a specific field.This field is an array. Sometimes, i have values, sometimes not.
The initial state, I see all items of this array. I type something in the input, the filter filters the field which expects with the input. When my input is empty, it shows all items where the field isn't empty.

I'm expected to get the same behaviour when I initialize my application.

http://plnkr.co/edit/d99r5yPDEKqmGIGM8OqP?p=preview

I found a workaround to set the filtered field to undefined when the input is empty

http://plnkr.co/edit/nG951XNg43tUcj0IkRvN?p=preview

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