steve-ferrero / ng-pick-datetime

A datepicker for angular
http://www.web-atrio.com/SSII/developpement-2D-3D
MIT License
3 stars 3 forks source link

on cancel click it removes the current selected value #8

Closed kumararun540 closed 6 years ago

kumararun540 commented 6 years ago

Hi,

On popup cancel click it removes default given current date and time value. Any way to fix this?

ceininger commented 6 years ago

Hi,

Can you give us detail on how you resolved your problem for those who will be in the same situation as you ?

kumararun540 commented 6 years ago

i just commented setMoment and momentChanged null value on cancel click. And all working fine now.

ng-pick-datetime/dialog.component.js

 DialogComponent.prototype.clearPickerInput = function () {
    //this.service.setMoment(null);
    //this.directiveInstance.momentChanged(null);
     this.closeDialog();
     return;
 };
ceininger commented 6 years ago

Ok, thank you for your reply !