You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
HvDatePicker is giving type error for value property with React Typescript. Expected value is Date type but prop type is mentioned as string.
(JSX attribute) HvDatePickerProps.value?: string | undefined
The initial value of the input when in single calendar mode.
Type 'Date' is not assignable to type 'string'.ts(2322)
DatePicker.d.ts(39, 3): The expected type comes from property 'value' which is declared here on type 'IntrinsicAttributes & HvDatePickerProps'
To Reproduce
Steps to reproduce the behavior:
Create a react component(using typescript) that uses HvDatePicker .
Pass default date value.
Expected behavior
It should accept Date.
Screenshots
Enviroment (please complete the following information):
Device: Laptop
OS: RHEL 8
Browser: Chrome
Version 3.8.1
Additional context
NA
The text was updated successfully, but these errors were encountered:
Describe the bug
HvDatePicker is giving type error for value property with React Typescript. Expected value is Date type but prop type is mentioned as string.
To Reproduce
Steps to reproduce the behavior:
HvDatePicker
.Expected behavior
It should accept Date.
Screenshots
Enviroment (please complete the following information):
Additional context
NA
The text was updated successfully, but these errors were encountered: