material-ui-pickers icon indicating copy to clipboard operation
material-ui-pickers copied to clipboard

onClose isn't called when mounted on Dialog

Open glenarama opened this issue 6 years ago • 1 comments

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

glenarama avatar Oct 13 '20 12:10 glenarama

Closing this as a more general problem duplicated: #1852

glenarama avatar Oct 14 '20 08:10 glenarama