element?.scrollIntoView is not a function

This issue has been tracked since 2023-01-25.

I've recently ran into this issue as I've upgraded the component version in our project from beta-10 to beta-22.
If you are firing click events in your jest tests you might run into it as well.
I've created this ticket so it's easier to find the solution as one would search first in issues I guess (at least I did).

You'll need to mock it, e.g. in this project's

window.HTMLElement.prototype.scrollIntoView ??= () => {};

MariuszApptension wrote this answer on 2023-02-02

Changing library to version: "7.0.0-canary.49" helps me to resolved this problem.

jozsefs wrote this answer on 2023-02-02

Updating library to version: "7.0.0-canary.49" helps me to resolved this problem.

that version is from May 26, 2021 so I guess "downgrading" is a better word in terms of version

More Details About Repo
Owner Name adazzle
Repo Name react-data-grid
Full Name adazzle/react-data-grid
Language TypeScript
Created Date 2015-03-06
Updated Date 2023-03-23
Star Count 5922
Watcher Count 129
Fork Count 2072
Issue Count 161

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date