Selecting minutes from clock breaks the DateTimePicker with format prop passed as "MM/DD/YYYY HH:mm" #12034
Labels
component: pickers
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
support: question
Community support but can be turned into an improvement
Steps to reproduce
https://stackblitz.com/edit/react-wdgpib?file=Demo.tsx
Demo link
Steps:
Current behavior
Upon selecting minutes from the clock, the DateTimePicker breaks saying cannot read properties of undefined 'contentType'.
I tried with various formats. HH:mm:ss/ HH:mm/hh:mm/hh:mm:ss.
I tried with hh:mm a, then it works normally. I can tell there might be some usage issue on my end in this case. If anyone can guide me on this and why this is happening it will be of really a lot of help.
Expected behavior
No response
Context
I had written a wrapper over the DateTimePicker and there was this use case to support 24 hour format but it was breaking.
Your environment
date pickers version : 6.19.4
Search keywords: minute selection, datetimepicker, format, contentType
The text was updated successfully, but these errors were encountered: