Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Page jumps away when trying to edit an anchor link | GoodFirstPicks

Page jumps away when trying to edit an anchor link

WordPress/gutenberg 12 comments 1mo ago
View on GitHub
lowopenScope: clearSkill match: yesWordPressJavaScriptReact

Why this is a good first issue

Anchor link behavior in editor causes unwanted page jumps during editing.

AI Summary

The issue describes an unwanted page jump when editing anchor links in the Gutenberg editor, with clear reproduction steps and video evidence. The fix likely involves modifying the link editing behavior to prevent the jump while maintaining anchor functionality. No major blockers are apparent beyond potential browser-specific considerations.

Issue Description

Description

Anchor links remain active in the Gutenberg editor, which makes them very hard to edit.

When you click an anchor link intending to change its URL, you will lose your position on the page.

Allowing anchors to jump appears to be deliberate but is very confusing and not great when trying to edit.

Step-by-step reproduction instructions

  1. In the Gutenberg editor, add several paragraphs of text, enough to fill up at least the height of the screen. Select some text near the bottom, click the link button, and enter a URL of #.

  2. Later, click on the text, expecting to see the usual popup where you can edit the link.

  3. Note that while the popup is triggered, you won't see it at all; instead you have been scrolled to the very top of the page, and have to scroll all of the way back down to find the link that you were trying to edit.

Screenshots, screen recording, code snippet

No response

Environment info

Tested on a fresh installation of WordPress 6.8.3 and default themes, no Gutenberg plugin

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

GitHub Labels

[Type] BugGood First Issue[Status] In Progress[Feature] Link Editing

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • browser-specific behavior
Loading labels...

Details

Points10 pts
Difficultylow
Scopeclear
Skill Matchyes
Test Focusedno