gregnb / gregnb/mui-datatables
check enter press for MUIDataTable search input
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
I'm dealing with MuiDataTable and i want to check enter press after adding search keywords inside the search text field.
It is easy if we thinking about JavaScript ways, but the problem is I don't have access to search filed because it is built-in inside MuiDataTable.
// First checking for search action:
onTableChange: (action, tableState) => {
console.log(action, tableState);
switch (action) {
case "search":
console.log(action, tableState.searchText.charCodeAt());
break;
}
'tableState.searchText.charCodeAt()' give me all aharacter code except Enter which is 13, Please help me guys
## Expected Behavior
## Current Behavior
## Steps to Reproduce (for bugs)
1.
2.
3.
4.
## Your Environment
| Tech | Version |
|--------------|---------|
| Material-UI | |
| MUI-datatables | |
| React | |
| browser | |
| etc | |
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.