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:
1 parent
480bad870f
commit
6ed5244421
1 file changed
+2
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user