Stas
Stas
> Do you reckon it's worth considering nested scroll containers and potentially detecting scroll containers automatically by traversing up the DOM tree? Thought about it too, but `getCoords` is used...
I had the same issue, resolved via: 1. switch to `autoAnimate` with `useRef` instead of `useAutoAnimate`: ```typescript import { RefObject, useEffect, } from "react" import autoAnimate from "@formkit/auto-animate" // https://github.com/formkit/auto-animate/issues/11...
@Clm-Roig, forgot about that, it also requires mock of `global.ResizeObserver` in [src/setupTests.ts](https://create-react-app.dev/docs/running-tests/#srcsetuptestsjs): ```typescript // src/setupTests.ts global.ResizeObserver = jest.fn().mockImplementation(() => ({ observe: jest.fn(), unobserve: jest.fn(), disconnect: jest.fn(), })) ```