1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix artifact from bad rebase

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso 2022-03-24 11:45:23 +02:00 committed by Janne Savolainen
parent 480bad870f
commit 6ed5244421
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

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