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've just upgraded to version 1.0.9 and I've noticed that there is an issue with the types of onResize.
The parameter passed to the function is of type React.SyntheticEvent<HTMLDivElement, Event> | Size, which means that you cannot access the properties width and height directly as they don't exist on the SyntheticEvent.
To silence the Typescript error, we either needs to
Add a @ts-ignore
Cast the parameter like this (param as { width: number; height: number}).width)
The text was updated successfully, but these errors were encountered:
We've just upgraded to version 1.0.9 and I've noticed that there is an issue with the types of
onResize
.The parameter passed to the function is of type
React.SyntheticEvent<HTMLDivElement, Event> | Size
, which means that you cannot access the propertieswidth
andheight
directly as they don't exist on the SyntheticEvent.To silence the Typescript error, we either needs to
@ts-ignore
(param as { width: number; height: number}).width)
The text was updated successfully, but these errors were encountered: