Skip to content

Switching palette causes scroll position jump on Firefox #5939

@sisp

Description

@sisp

Context

No response

Bug description

The scroll position jumps upwards upon clicking the palette toggle on Firefox (v117.0, Ubuntu 20.04). For instance, if you scroll to the bottom of a page, then clicking the palette toggle several times will move the scroll position to the top of the page eventually. This is certainly not desired behavior.

It works fine for me on Chromium.

Related links

Reproduction

9.2.6-palette-toggle-scroll-position.zip

Steps to reproduce

  1. Open any page of the docs in the reproduction.
  2. Scroll down, e.g. to the bottom of the page.
  3. Click the palette toggle and observe how the scroll position jumps upwards upon every click of the toggle.

Browser

Firefox

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions