kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
82 stars 22 forks source link

[BUG] When navigating the cookbook, routing does not scroll to top #3402

Open Niclassg opened 4 months ago

Niclassg commented 4 months ago

Describe the bug

When using menu navigation on the page the scroll-position is persisted between routes. The scroll view should reset when navigating.

Describe how to reproduce the bug

  1. Go to cookbook
  2. Scroll to the bottom of the page
  3. Click on the Toolbar button
  4. Notice how we are still at the bottom of the page

What was the expected behavior?

The view should scroll to top

Add any screenshots

image

Please complete the following information:


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Verification

To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: