Issue with Scroll Functionality After Adding Bottom Drawer

Hi!

I’m encountering an issue with the scroll functionality in my app. After adding a persistent bottom drawer, the entire application page shifts up when using the scrollIntoView code. This makes the app unusable, as it’s impossible to scroll back to other elements without using the inspect element tool.

Upon inspection, I found that the bottom drawer element, although invisible, exists below the page, causing this shift. This issue doesn’t occur with a temporary drawer, only with a persistent one.

To resolve this, I assigned unique element IDs to all my scrollable containers and modified the code to scroll only within the relevant components.

Questions:

  1. Is this behavior a bug or an expected outcome that is unavoidable with persistent drawers?
  2. Does anyone have experience handling this issue effectively?

This situation complicates the creation and maintenance of generic scroll actions. I would prefer not to review every action in my app for potential scroll issues whenever I add a bottom drawer :slight_smile: