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
What is the current behavior?
Prop types are bugged. Spreading its props into itself gives a weird error about ref.
Type '{ children: ReactNode; wrapperProps: { renderer: ({ elementRef, style, ...restProps }: PropsWithChildren<ElementPropsWithElementRef<HTMLDivElement>>) => Element; }; ... 409 more ...; onUpdate?: ((scrollValues: ScrollState, prevScrollState: ScrollState) => void) | undefined; }' is not assignable to type 'IntrinsicClassAttributes<Scrollbar>'.
Types of property 'ref' are incompatible.
Type 'LegacyRef<HTMLDivElement> | undefined' is not assignable to type 'LegacyRef<Scrollbar> | undefined'.
Type '(instance: HTMLDivElement | null) => void' is not assignable to type 'LegacyRef<Scrollbar> | undefined'.
Type '(instance: HTMLDivElement | null) => void' is not assignable to type '(instance: Scrollbar | null) => void'.
Types of parameters 'instance' and 'instance' are incompatible.
Type 'Scrollbar | null' is not assignable to type 'HTMLDivElement | null'.
Type 'Scrollbar' is missing the following properties from type 'HTMLDivElement': align, addEventListener, removeEventListener, accessKey, and 227 more. TS2322
Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than react-scrollbars-custom. Paste the link to your JSFiddle or CodeSandbox example below:
What is the current behavior?
Prop types are bugged. Spreading its props into itself gives a weird error about ref.
Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than
react-scrollbars-custom
. Paste the link to your JSFiddle or CodeSandbox example below:What is the expected behavior?
No Typescript error
A little about versions:
react-scrollbars-custom
: 4.0.25The text was updated successfully, but these errors were encountered: