Error emitting when IgxDatePicker value property is initialized with empty string. #3021
Labels
🐛 bug
Any issue that describes a bug
📅 date-picker
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Description
The IgxDatePicker allows the
value
propertyto call getHours
/getMinutes
/getSeconds
/getMilliseconds
when it is initialized with an empty string.Steps to reproduce
Bind the
value
property of IgxDatePicker with an empty string and click on the IgxDatePicker to set DateResult
When you click on the Calendar an error is thrown -
this.value.getHours is not a function
and the Date is not set.Expected result
The Date should be set.
Attachments
The text was updated successfully, but these errors were encountered: