Posted 28 March 2019, 7:44 am EST
Using angular 6 and to get the previous date back when we clear the exisiting date I add isRequired propery as true and I end up getting “Uncaught ** Assertion failed in Wijmo: Date expected”
Forums Home / Wijmo / General Discussion
Posted by: samvarth123 on 28 March 2019, 7:44 am EST
Posted 28 March 2019, 7:44 am EST
Using angular 6 and to get the previous date back when we clear the exisiting date I add isRequired propery as true and I end up getting “Uncaught ** Assertion failed in Wijmo: Date expected”
Posted 28 March 2019, 9:13 am EST
If I’m correct, if
isRequired
is ```
In addition you might have to have a real Date() object instead of a string.
Posted 29 March 2019, 2:57 am EST
Hello,
We were able to reproduce the issue using the mentioned steps. This error is because the value of the InputDate control might be getting set as null. Also, please refer to the angular sample given below:
https://stackblitz.com/edit/ckkyne-uykdzg?file=src/app/app.component.ts