Context: I am trying to achieve this --> https://hhk6r.csb.app/
Mock:
Problem:
Scroll to view on the div element does not scroll to the start of the expansion panel.
Docs:https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
I have tried using the block:'start' option provided in the docs, not able to figure out where am i going wrong any suggestions would be helpful.
I have created codesandbox to replicate the issue, this is what I have tried till now.
https://codesandbox.io/s/scroll-issue-kyoxf
from How to use scroll to view within expansion panel
No comments:
Post a Comment