Open waqar-ali-intagleo opened 4 years ago
Looks like you're using an old version of the library. The current version is 3.5.
@patorjk I am using the same data table in different places and they work fine but this code is generating the error. I compared the code but unable to find where I am doing wrong here.
@waqar-ali-intagleo
I don't think it's an rowsPerPage option problem...
codesandbox(MUI-datatables | 2.14.0) : https://codesandbox.io/s/muidatatables-custom-toolbar-forked-ohem7?file=/index.js
I think I need the input data...
Please provide codesandbox.
I have found the solution the issue was due to the popup dialog. I am adding the mui-datatable in the popup dialog. The solution is add the prop disableEnforceFocus to the Dialog component.
const modelTrained = {
name: "Model Trained",
options: {
filter: false,
customBodyRender: (value, tableMeta, updateValue) => {
const asset = assets[tableMeta.rowIndex];
const isModelTrained = asset.isModelTrained;
return (
<select
className="model-select"
value={isModelTrained ? "Yes" : "No"}
onChange={() => this.handleIsModelTrainedOption(asset)}
>
<option> Yes </option>
<option> No </option>
</select>
);
}
},
@waqar-ali-intagleo
Is the Maximum call stack size exceeded here ❓
So, did Maximum call stack size exceeded solve❓
render() { const { type } = this.props; const ocrType = mixConstants.visualAssetType.OCR;
}
Expected Behavior
It should show the dropdown with selectable rows per page options.
Current Behavior
App gets stuck in infinite "Uncaught RangeError: Maximum call stack size exceeded."
Steps to Reproduce (for bugs)
just click on the rows per page dropdown
My Environment