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

fix(react-grid): use a column filter operation as a filter selector value #1479

Conversation

SergeyAlexeev
Copy link
Contributor

Fixes #1474

const getSelectedFilterOperation = (
filterOperations, columnName, filter, columnFilterOperations,
) => {
if (filterOperations[columnName]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we extract getSelectedFilterOperation function to helpers file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's quite specific and used only here. I'm not sure it's necessary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But in all packages, we extract specific methods to clear plugins code. If we want to support other frameworks we should extract all functionality to common package

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@SergeyAlexeev SergeyAlexeev merged commit 70e26fa into DevExpress:master Oct 10, 2018
@SergeyAlexeev SergeyAlexeev deleted the grid-fix-current-filter-operation branch October 10, 2018 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants