Closing settings dialog causes jump to top of page

Created on 13 March 2024, 4 months ago
Updated 27 June 2024, 5 days ago

Problem/Motivation

When opening the settings dialog via URL (e.g. #editCookieSettings) and closing it either through clicking on the X or on any of the Accept or Deny buttons, the anchor symbol # remains in the URL, causing the page to jump to the top.

Steps to reproduce

  1. Set the URL hash to editCookieSettings for the settings dialog layer and embed it somewhere on the site
  2. Click the link to open the settings dialog
  3. Close the dialog

If it doesn't occur immediately, repeat steps 2 and 3 again.

Proposed resolution

Closing the dialog shouldn't leave the # in the URL

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024