mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
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={() => {
|
||||
announcementsListRef.current?.children[
|
||||
index
|
||||
].scrollIntoView({ behavior: 'smooth' });
|
||||
].scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'nearest',
|
||||
});
|
||||
}}
|
||||
>
|
||||
{index + 1}
|
||||
|
|
Loading…
Add table
Reference in a new issue