Anchor link behavior in editor causes unwanted page jumps during editing.
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.
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.
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 #.
Later, click on the text, expecting to see the usual popup where you can edit the link.
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.
No response
Tested on a fresh installation of WordPress 6.8.3 and default themes, no Gutenberg plugin
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!