timelines: workaround to a bug moves the panels
This commit is contained in:
parent
cd02dc2053
commit
f06a7a6da1
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ const Home: ParentComponent = (props) => {
|
||||||
const onTabClick = (idx: number) => {
|
const onTabClick = (idx: number) => {
|
||||||
const items = panelList.querySelectorAll(".tab-panel");
|
const items = panelList.querySelectorAll(".tab-panel");
|
||||||
if (items.length > idx) {
|
if (items.length > idx) {
|
||||||
items.item(idx).scrollIntoView({ block: "nearest", behavior: "smooth" });
|
items.item(idx).scrollIntoView({ block: "start", behavior: "smooth" });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue