Fix artifact from bad rebase

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso authored and Janne Savolainen committed 2022-03-31 15:13:31 +03:00
1 parent 480bad870f
commit 6ed5244421
1 file changed
+2 -3
+2 -3
View File
@@ -79,9 +79,8 @@ export class Tab extends React.PureComponent<TabProps> {
}
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