Skip to content

Comments

fix(settings): quick nav fails to open hide elements & danger zone (@byseif21)#7513

Open
byseif21 wants to merge 2 commits intomonkeytypegame:masterfrom
byseif21:fix/settings-quicknav
Open

fix(settings): quick nav fails to open hide elements & danger zone (@byseif21)#7513
byseif21 wants to merge 2 commits intomonkeytypegame:masterfrom
byseif21:fix/settings-quicknav

Conversation

@byseif21
Copy link
Contributor

@byseif21 byseif21 commented Feb 19, 2026

in the settings page, clicking "hide elements" or "danger zone" from the top quick nav did not open those sections when they were collapsed, unlike the other quick nav links,

that's due to a mismatch between the visible label and the section’s class name.

Steps to reproduce

  1. open the settings page
  2. collapse the hide elements or danger zone sections
  3. scroll back up to the top quick nav and click one of them
  4. section stays collapsed (does not open)

Copilot AI review requested due to automatic review settings February 19, 2026 20:17
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Feb 19, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Feb 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where clicking "hide elements" or "danger zone" in the settings page quick navigation failed to expand collapsed sections.

Changes:

  • Extract section group name from the href attribute instead of innerText to match CSS class names
  • Add validation to ensure href starts with "#group_" and is not empty after extraction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants