Skip to content

Conversation

NixonK
Copy link
Contributor

@NixonK NixonK commented Mar 20, 2018

Fix textFilter() for Internet Explorer (includes() and find() are not supported)

@NixonK NixonK force-pushed the fix_text_filter branch 7 times, most recently from f6db976 to 74a68e8 Compare March 20, 2018 09:49
@NixonK NixonK changed the title Fix textFilter() for Internet Explorer 11 (includes() and find() are not supported) Fix textFilter() for Internet Explorer (includes() and find() are not supported) Mar 20, 2018
filterValue = columns[keys[i]].filterValue;
break;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I think just use column.length will be much readable:

let filterValue; for (let i = 0; i < columns.length; i += 1) { if (columns[i].dataField === dataField) { filterValue = columns[keys[i]].filterValue; break; } }
sortedColumn = nextProps.columns[keys[i]];
break;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

@AllenFang
Copy link
Member

AllenFang commented Mar 25, 2018

@NixonK thanks your contributions, there's still tiny thing need to patch, thanks!!

@NixonK
Copy link
Contributor Author

NixonK commented Mar 25, 2018

@AllenFang Changes made, let me know if there's more, thank you!

Copy link
Member

@AllenFang AllenFang left a comment

Choose a reason for hiding this comment

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

LGTM

@AllenFang AllenFang changed the base branch from master to develop March 25, 2018 09:23
@AllenFang
Copy link
Member

@NixonK thanks your contribution 👍

@AllenFang AllenFang changed the base branch from develop to master March 25, 2018 09:25
@AllenFang
Copy link
Member

@NixonK BTW, could you please change to the develop branch?

@NixonK NixonK changed the base branch from master to develop March 25, 2018 09:35
@NixonK NixonK changed the base branch from develop to master March 25, 2018 09:35
@NixonK NixonK force-pushed the fix_text_filter branch 2 times, most recently from b6a831b to f5eea7b Compare March 25, 2018 09:38
@NixonK NixonK changed the base branch from master to develop March 25, 2018 09:40
@NixonK NixonK closed this Mar 25, 2018
@NixonK NixonK deleted the fix_text_filter branch March 25, 2018 09:48
@NixonK
Copy link
Contributor Author

NixonK commented Mar 25, 2018

@AllenFang Ah is the branch correct now? It is now rebased on top of origin/develop. ah woops deleted the branch. // reopened at #274

@NixonK NixonK restored the fix_text_filter branch March 25, 2018 09:51
NixonK added 2 commits March 25, 2018 03:38
- replace includes() with indexOf() !== -1 - replace find() with for loop
- use .length of the columns instead of the Object.keys()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants