danielmoncada / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
140 stars 60 forks source link

Double Click on date closes dialog. #126

Open amalgyte opened 3 years ago

amalgyte commented 3 years ago

In dialog mode, double click closes the dialog but no date is set (if not expecting time).
Rather than previous requesting on original source of setting the picker date, how about having accessible lastDateSelected which is set every time a date is clicked, then devs could use this if this to determine if a date was selected. If cancel is clicked then the lastDateSelected = null.

Seems this kind of functionality would be useful to many after searching through various dev sites.

BTW this functionality of double clicking to select a date has been an end user request too. They also would like a double click to change focus to the hour selector if visible.