material-ui-pickers
material-ui-pickers copied to clipboard
onClose isn't called when mounted on Dialog
The example for programmatic control does not work if the date picker is within a Dialog.
Reproduction here: https://codesandbox.io/s/modalprogrammaticdatepicker-7n3rn?file=/demo.tsx
- [X] The issue is present in the latest release.
- [X] I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
onClose not called when inside Dialog
Expected Behavior 🤔
onClose should be consistent when on dialog
Steps to Reproduce 🕹
See reproduction
Your Environment 🌎
| Tech | Version |
|---|---|
| @material-ui/core | v5.0.0-alpha.10 |
| @material-ui/pickers | v4.0.0-alpha.12 |
| React | v16.13.1 |
| Browser | Chrome |
Closing this as a more general problem duplicated: #1852