material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Material Table search not working for white spaces along with words

Open PATTANPARVIN opened this issue 5 years ago • 1 comments

Table should give search result including white spaces after the word

  • I have tried to trim the word then my array returning values but table is returning empty rows.
  • onSearchChange = (e) => { const keyword = e.trim(); const filtered = this.state.tableData.filter(entry => Object.values(entry).some(val => typeof val === "string" && val.includes(keyword))); console.log('filtered', filtered); }

Version: "^1.67.0"

PATTANPARVIN avatar Jul 12 '21 10:07 PATTANPARVIN

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar Oct 10 '21 15:10 stale[bot]