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!
...
}