Currently the onClose callback on Dialog component does not have the correct typings:

onClose on Dialog should have the correct typings: (event, reason)
Same as Summary above
Link:
1.
2.
3.
4.
Documentations state that onClose is a callback with signature (event, reason: string) but this doesn't seem to be correct on the typings. I need to access the reason parameter here.
DISCLAIMER: I am aware of onBackdropClick and onEscapeKeyDown event which I'm currently using but this introduces code duplication in my project.
| Tech | Version |
|--------------|---------|
| Material-UI | v3.9.3 |
| React | v16.8.x |
| Browser |Chrome|
| TypeScript |3.4.x|
| etc. | |
Correct. We need to add the reason parameter to
Most helpful comment
Correct. We need to add the
reasonparameter tohttps://github.com/mui-org/material-ui/blob/f8c42a32d5de5f35e626a182c4fb81a7ce7ff615/packages/material-ui/src/Modal/Modal.d.ts#L23