#Multiple target refs when using useScrollIntoView
2 messages · Page 1 of 1 (latest)
Why no use element.scrollIntoView({ behavior: 'smooth', block: 'nearest' }) instead?
2 messages · Page 1 of 1 (latest)
Hey, Is it possible to use the useScrollIntoView() hook with multiple target refs?
Essentially we need to scroll to specific sections of the page with a sticky nav bar. The amount of sections/refs can be n but is never less than 3.
Any ideas or currently not doable (and/or unplanned)?
Why no use element.scrollIntoView({ behavior: 'smooth', block: 'nearest' }) instead?