Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column filterFn function works incorrectly if multiple columns share field #4408

Closed
chuckn0rris opened this issue Mar 28, 2022 · 0 comments
Closed
Assignees
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@chuckn0rris
Copy link

Forum post

to reproduce in grid filtering example:

        { text : 'Fake Age', field : 'age', width : 100, type : 'number' },
        { text : 'Age', field : 'age', width : 100, type : 'number', filterType : 'string',
        filterable: {
                         filterField : {
                             type  : 'combo',
                             items : [
                                 'Paris',
                                 'Dubai',
                                 'Moscow',
                                 'London',
                                 'New York'
                             ]
                         },
                         filterFn: ({ record, value, operator, property }) => {
                             return value === "Paris";
                         }
                     }
        },

Try to select "Paris" in filter combo - no values visible.
Comment "Fake age" and try to select "Paris" again - all works as expected.

@chuckn0rris chuckn0rris added bug Something isn't working forum Issues from forum labels Mar 28, 2022
@isglass isglass self-assigned this Mar 28, 2022
@isglass isglass added this to the 5.0.2 milestone Mar 28, 2022
@isglass isglass removed their assignment Mar 28, 2022
@ExtAnimal ExtAnimal added ready for review Issue is fixed, the pull request is being reviewed and removed in progress labels Mar 28, 2022
@isglass isglass changed the title filterable filterFn function works incorrect if more than 1 column used that field name Filterable filterFn function works incorrect if multiple columns share field Mar 29, 2022
@isglass isglass changed the title Filterable filterFn function works incorrect if multiple columns share field Column filterFn function works incorrect if multiple columns share field Mar 29, 2022
@isglass isglass changed the title Column filterFn function works incorrect if multiple columns share field Column filterFn function works incorrectly if multiple columns share field Mar 29, 2022
@ExtAnimal ExtAnimal added resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

3 participants