material-table
material-table copied to clipboard
Material Table search not working for white spaces along with words
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"
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.