Second, when in edit mode for a row I need to open a dialog on blur for a field if certain conditions are met. The problem I am facing is that when I open the modal the row exits edit mode. I am using the MUI Dialog component and changing the 'open' state which I am guessing is the reason why the edit mode closes.
Does anyone know of a way to have some type of dialog/modal open during a row edit without having the row exit edit mode?
hello, i found material-table supports react@"^16.8.0 || ^17.0.0",
may i know any plan to update for react 18.0.0 ?
when install material-table in react 18.0.0, having this error.
try to command with --force, or --legacy-peer-deps, still having errors..
```
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ---@0.1.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR! react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"4.12.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/lee/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lee/.npm/_logs/2022-04-27T05_46_23_128Z-debug-0.log
```
const divRef = useRef<null | HTMLDivElement>(null);
useEffect(() => {
divRef!.current!.scrollTo(0, 0);
});
return (
<div ref={divRef}>
<MaterialTable