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
This issue was introduced by 6472ede. jsdom doesn't implement Element.scroll (see jsdom/jsdom#1422 and jsdom/jsdom#2626), so scroll-into-view-if-needed now throws errors if used in a jsdom environment, such as Jest uses.
After upgrading from scroll-into-view-if-needed 3.0.4 to 3.0.5, one of our Jest tests has started failing with the following error:
See https://codesandbox.io/s/scroll-into-view-3-0-5-zsbh6k?file=/src/index.test.js for a test case.
The text was updated successfully, but these errors were encountered: