Skip to content

filter only applies to lowercase object properties #634

@dtryon

Description

@dtryon

As I was implementing filtering in my grid, I noticed that filtering had an issue with object properties that were not lowercase.

For example a column definition like this:

{ field: 'costs.myTotal', displayName: 'My Total' }

The myTotal value is not included in the search using filter.

I tracked the issue to this bit of code in searchProvider:

if(typeof pVal === 'object'){ return searchEntireRow(condition, pVal, c);

When this recursion happens, the object c's properties are not lower case and so it does not search correctly.

I'm adding a pull request that attempts to fix this issue, now.

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