Fix double scrolling when clicking on announcement index buttons
This commit is contained in:
parent
9bb66e57ae
commit
2b5eb87ec4
1 changed files with 4 additions and 1 deletions
|
@ -253,7 +253,10 @@ function Notifications() {
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
announcementsListRef.current?.children[
|
announcementsListRef.current?.children[
|
||||||
index
|
index
|
||||||
].scrollIntoView({ behavior: 'smooth' });
|
].scrollIntoView({
|
||||||
|
behavior: 'smooth',
|
||||||
|
block: 'nearest',
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{index + 1}
|
{index + 1}
|
||||||
|
|
Loading…
Add table
Reference in a new issue