79771080

Date: 2025-09-21 20:31:25
Score: 0.5
Natty:
Report link

The issue is caused by your component missing React property ref. In my case I had customized <FlexCol> component that did not have that property. After I added support of ref property into my component the issue got fixed (just passed it as a prop value to the top div). Morale - never strip off life important React properties from your custom components (key, ref, maybe more?).

type FlexColProps = {
    id?: string;
    key?: string | number;    
    ref?: React.Ref<HTMLDivElement>; // ref was missing and causing the scrollTop error!   
    ...
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: user1618743