'Close Date/Time Picker programmatically in Material UI Library?

How to close Date/Time Picker programmatically in Material UI Library?



Solution 1:[1]

This will work autoOk={true}. For more info, see this github issue

Solution 2:[2]

autoOk={true}

You can pass this prop in your component to close Popup just after date selection.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dipanshu Sharma
Solution 2 shubhamGami