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
We have wrong types for the following DateInput props: onFocus, onBlur, onMouseEnter and onMouseLeave. Currently, their inferred type is (((event: React.MouseEvent<HTMLElement>) => void) & (() => void)) | undefined which doesn't allow us to pass a callback that requires MouseEvent (because of () => void part).
The reason is that this props declared twice: on the TFullInputProps (with correct signature) and on TDateInputOwnProps itself (wrong one). The solution here is to simply remove these props from TDateInputOwnProps and let them be inferred from TFullInputProps.
The text was updated successfully, but these errors were encountered:
We have wrong types for the following DateInput props:
onFocus
,onBlur
,onMouseEnter
andonMouseLeave
. Currently, their inferred type is(((event: React.MouseEvent<HTMLElement>) => void) & (() => void)) | undefined
which doesn't allow us to pass a callback that requires MouseEvent (because of() => void
part).The reason is that this props declared twice: on the
TFullInputProps
(with correct signature) and onTDateInputOwnProps
itself (wrong one). The solution here is to simply remove these props fromTDateInputOwnProps
and let them be inferred fromTFullInputProps
.The text was updated successfully, but these errors were encountered: