danielmoncada / date-time-picker

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

dialog mode, only calendar issues #157

Open tanmayrsm opened 2 years ago

tanmayrsm commented 2 years ago

If we use date-time picker with below conf -

<owl-date-time [pickerType]="'calendar'"
[pickerMode]="'dialog'" ...>

I'm facing 2 issues using above configurations -

  1. Double click on any 'date', closes the dialog. And input-text remains empty. In other modes (time and calendar combined), dialog doesn't closes on double-click on any date image (double click on any date here, dialog closes and textbox stays empty behind)

  2. If I open dialog, and directly click 'SET', current date is selected and shown in input-textbox. Problem is, if the current date has also been disabled, still it's shown in textbox behind after 'SET' clicked, adding on there's no way to keep 'SET' disabled until a 'date' is been clicked. image (dont' select any date, and click 'SET' directly, even though today's date - 09/05/2022 is disabled)

image (still, it's shown in textbox)

I'm facing above issues even using latest versions, i.e. - @danielmoncada/angular-datetime-picker @13.1.1 in angular 12 - stackblitz, also tried @danielmoncada/angular-datetime-picker @14.0.1 angular 13 - stackblitz.