diff --git a/src/renderer/components/tabs/tabs.tsx b/src/renderer/components/tabs/tabs.tsx index 51cce375c1..9eb5c67471 100644 --- a/src/renderer/components/tabs/tabs.tsx +++ b/src/renderer/components/tabs/tabs.tsx @@ -79,9 +79,8 @@ export class Tab extends React.PureComponent { } scrollIntoView() { - if (typeof this.ref.current?.scrollIntoViewIfNeeded === "function") { - this.ref.current.scrollIntoViewIfNeeded(); - } + // Note: .scrollIntoViewIfNeeded() is non-standard and thus not present in js-dom. + this.ref.current?.scrollIntoViewIfNeeded?.(); } @boundMethod