date_time_picker
date_time_picker copied to clipboard
AM / PM will disappear after selecting "OK" button without changing time
The AM / PM will disappear when Opening the DateTimePicker and Tapping "OK" button without changing time time.
Step to replicate:
- Open date time picker
- Select a Date and time "5:00 AM"
- Close the picker
- Open Picker
- Set the selected date time from previous selection as initial date
- Picker shows "5:00 AM"
- Tap "OK" button
- Picker shows "5:00"
possible solution is to add a callback when user taps "OK" button, and we can take it from there. At the moment, when user taps "OK" button, nothing happens if there is no date and time changes.
possible to have "OK" callback button regardless if there aren't any changes and also "Cancel" callback if we have something to do after user taps "cancel" button in datepicker