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:
parent
480bad870f
commit
6ed5244421
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user