mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use scrollIntoViewIfNeeded in tabs
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
7736589738
commit
b3de1791e0
@ -81,10 +81,7 @@ export class Tab extends React.PureComponent<TabProps> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scrollIntoView() {
|
scrollIntoView() {
|
||||||
this.ref.current?.scrollIntoView?.({
|
this.ref.current?.scrollIntoViewIfNeeded();
|
||||||
behavior: "smooth",
|
|
||||||
inline: "center",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@boundMethod
|
@boundMethod
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user