Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
@state()
private definedDate?: Date = new Date();
...
<igc-date-picker .value=${this.definedDate}
selectedValueChanged=${(_s: IgcDatePickerComponent, e: IgcSelectedValueChangedEventArgs) => this.definedDate = e.newValue}>
</igc-date-picker>
Result
In first case application throws an error - Cannot read properties of undefined (reading 'getHours').
In second case if I click on clear value button the value of the date picker becomes 01.01.0001 instead of undefined or null.
Expected result
Data picker should be able to accept nullable values as its value.
Description
I am trying to clear the value of the
date-picker
or to set it to nullable data.Steps to reproduce
Use code like this:
or like this:
Result
In first case application throws an error -
Cannot read properties of undefined (reading 'getHours')
. In second case if I click on clear value button the value of the date picker becomes 01.01.0001 instead ofundefined
ornull
.Expected result
Data picker should be able to accept nullable values as its value.