Wijmo Input time Component not emitting an event post upgrade

Posted by: syadagiri on 1 April 2019, 4:55 pm EST

  • Posted 1 April 2019, 4:55 pm EST

    Hello,

    We have recently upgraded wijmo to Wijmo 5.20183.568 and have found below observations.

    (valueChanged)
    ``` output does not emit an event while entering incorrect time format. 
    
    We had this working using wijmo [5.20173.409] which would help handling error validations by displaying relevant message to the user.
    
    Please find below Stackblitz which reproduces this issue. Thanks!
    
    https://stackblitz.com/edit/angular-4tbixb
  • Posted 2 April 2019, 5:15 am EST

    Hello,

    The (valueChanged) event does not get fired in both versions (5.20183.568 and 5.20173.409) when the user inputs an invalid time. This is because the valueChanged event only fires when the value of InputTime changes and when the user inputs an invalid time, the value is set to the previous value of control and therefore it is not changed. Please refer to the sample for version 5.20173.409.

    To validate the user input, you could use the InputMask control as shown in the demo below:

    https://stackblitz.com/edit/angular-2oskus?file=src/app/app.component.ts
    
Need extra support?

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

Learn More

Forum Channels