You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manually setting dangerouslySetExpanded scrolls to middle of the AccordionItem instead of to Top. Is there any way to control the scroll such that after setting dangerouslySetExpanded it opens the Accordion item and scrolls to Top of that item?
#338
Open
quepayal opened this issue
Nov 10, 2021
· 1 comment
I found the way around by using the below but problem is that it first scrolls to the middle and then to the top which is not what we want.
document.getElementById('AccordionItem1')?.scrollIntoView({ behavior: 'smooth' });
The text was updated successfully, but these errors were encountered:
There's no scroll management in React-Accessible-Accordion, so any scrolling will be based on the user moving focus to an element which the browser then scrolls to.
I found the way around by using the below but problem is that it first scrolls to the middle and then to the top which is not what we want.
document.getElementById('AccordionItem1')?.scrollIntoView({ behavior: 'smooth' });
The text was updated successfully, but these errors were encountered: