microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
868 stars 372 forks source link

Switching Trigger maintains vertical scroll position #9717

Open mikeirvingweb opened 6 months ago

mikeirvingweb commented 6 months ago

Describe the bug

If you open one Trigger, scroll down, then open another, it assumes the scroll position from the previously opened one - which is unhelpful.

it should open a new Trigger with the view set at the top of the trigger.

Occurs in Web App and native wrapped apps.

Version

2.1.2

Browser

OS

To Reproduce

Steps to reproduce the behavior:

  1. open a Trigger (a long one that requires vertical scrolling)
  2. scroll down
  3. then open another (another long one that requires vertical scrolling)
  4. the new trigger view assumes the scroll position from the previously opened one

Expected behavior

Screenshot 2024-03-14 at 10 45 35 Screenshot 2024-03-14 at 10 45 41 Screenshot 2024-03-14 at 10 45 48

if you open a trigger, the vertical scroll bar should be set to the top

Screenshots

Video: https://github.com/microsoft/BotFramework-Composer/assets/79252299/503eddd3-1368-4bce-b87e-3775e417d320