Skip to content

fix: preserve Settings Editor TOC section state across focus changes (fixes PlatformNetwork/bounty-challenge#21908)#20

Merged
echobt merged 1 commit intomainfrom
fix/issue-21908
Feb 27, 2026
Merged

fix: preserve Settings Editor TOC section state across focus changes (fixes PlatformNetwork/bounty-challenge#21908)#20
echobt merged 1 commit intomainfrom
fix/issue-21908

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 27, 2026

Fix for PlatformNetwork/bounty-challenge#21908: Settings Editor loses TOC section state on focus change

Changes

  • Moved the active TOC section state to a module-level signal (outside the component)
  • Added localStorage persistence via safeGetItem/safeSetItem so the selected section survives component unmount/remount cycles
  • The section state is now preserved when switching between editor tabs and returning to settings

Files Modified

  • src/components/settings/SettingsEditor.tsx

@echobt echobt changed the title fix: preserve Settings Editor TOC section state across focus changes (fixes #21908) fix: preserve Settings Editor TOC section state across focus changes (fixes PlatformNetwork/bounty-challenge#21908) Feb 27, 2026
@echobt
Copy link
Contributor Author

echobt commented Feb 27, 2026

Closing: this fix has already been applied directly to the main branch. The branch is based on an older commit and merging it would regress other fixes. The referenced issue is resolved on main.

@echobt echobt closed this Feb 27, 2026
@echobt echobt reopened this Feb 27, 2026
@echobt echobt merged commit 716a8df into main Feb 27, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant