Skip to main content

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?

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


Reply