Skip to content

Error emitting when IgxDatePicker value property is initialized with empty string. #3021

Closed
@HristoP96

Description

Description

The IgxDatePicker allows the value property to 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 Date

Result

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

errorcausing

datepickererror

Metadata

Labels

🐛 bugAny issue that describes a bug📅 date-picker✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions