React-Fast-Accordion icon indicating copy to clipboard operation
React-Fast-Accordion copied to clipboard

Feature: Automatically scroll element into view if needed

Open ShivamJoker opened this issue 3 years ago • 2 comments

We need something like scrollIntoViewIfNeeded but it's not majorly supported and doesn't have smooth behaviour

https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIfNeeded

Content scroll height needs to be added as well while scrolling the element

ShivamJoker avatar Feb 24 '22 08:02 ShivamJoker

I would like to give this issue a try.

ashutosh887 avatar Jul 14 '22 10:07 ashutosh887

Awesome. Just send a PR when you are done, use the existing example code to check if it scrolls automatically in the bottom.

ShivamJoker avatar Jul 14 '22 10:07 ShivamJoker