ValueChanged on Wijmo Input Date

Posted by: sebastien.clauzel on 17 July 2018, 1:04 am EST

  • Posted 17 July 2018, 1:04 am EST

    Hi,

    I’m currently testing wijmo solution on our POC.

    I’ve an issue with the input date and I’ve currently found any solution.

    Each time I click on wj-input-date, the method on valuechanged is called.

    Html :

    
    <wj-input-date #date [value]="dateObjectif"
                       [format]="'dd/MM/yyyy'"
                       [min]="dateExerciceMini"
                       [max]="dateExerciceMaxi"
                       (valueChanged)="changeDateObjectif(date, $event)">
    </wj-input-date>
    
    

    Ts Code:

    
    changeDateObjectif(dateInput: wjInput.InputDate, e: wjCore.EventArgs): void {
        if (dateInput.value && dateInput.value !== this.dateObjectif) {
          this.dateObjectif = dateInput.value;
          this.dashboardDataService.setDateObjectif(this.dateObjectif);
        }
      }
    

    Could you please have a look and advice?

    Thanks

  • Posted 17 July 2018, 7:26 pm EST

    Hi,

    We are sorry, we are unable to replicate the issue at our end with latest release build 5.20181.462.

    This is the sample that is used to replicate the issue:

    https://stackblitz.com/edit/angular-nywwsc?file=app%2Fapp.component.ts

    In the sample above, valueChanged is triggered only when the date value gets changed.

    Please have a look at the sample and let us know if we need to make some changes in the sample in order to replicate the issue or you may also share a small sample depicting your issue.

    ~

    Thanks,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels