ic-design-system
ic-design-system copied to clipboard
Using "Scroll to top" button with the Anchor navigation causes the navigation to not recognise the anchor
Summary of the bug
Using "Scroll to top" button with the Anchor navigation causes the navigation to not recognise the anchor
🪜 How to reproduce
- Go to a page such as https://design.sis.gov.uk/components/cards#
- Scroll to the bottom
- Click "Scroll to top"
- Observe how Anchor navigation does not recognise the correct location until you scroll again
🧐 Expected behaviour
Expect it to recognise the location after pressing back to top