Skip to main content

Custom Block Scroll

  • July 2, 2020
  • 1 reply
  • 0 views

The custom block seems to retain the scroll position when moving between components which get replaced based on State. Is there any way to always load page with scrolled at top of Block UI?

1 reply

You can can use elem.scrollIntoView(true) for the root element of your block anytime the page re-renders


Reply