search caseSensitive not displaying results
Expected Behavior
When the caseSensitive option is set to true, the search results should display if there is an exact case match between search text and full or partial column value when the case is mixed or Upper case.
Current Behavior
However when the caseSensitive Option is set to true, the search results display no results when there is a valid case match between search text and column value (full or partial value with non-lower case). (I checked the code and notice a possible issue at line 360 of MuiDatatable.js , the search text is always changed to lower case when searching the searchCase.)
Relevant code in MuiDatatable.js (for bugs)
const searchCase = !this.options.caseSensitive ? columnVal.toLowerCase() : columnVal.toString();
if (searchText && searchCase.indexOf(searchText.toLowerCase()) >= 0) {
isSearchFound = true;
}
Thanks for filing this issue and good catch. Would you like to send in a PR?
Took care of this one. Should be released sometime later tonight
This should be solved in the latest version