Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The classic block scrolls the to top after adding image or editing link #14134

Closed
shindevijaykr opened this issue Feb 27, 2019 · 7 comments
Closed
Assignees
Labels
[Block] Classic Affects the Classic Editor Block [Type] Bug An existing feature does not function as intended [Type] WP Core Ticket Requires an upstream change from WordPress. Core Trac ticket should be linked.

Comments

@shindevijaykr
Copy link

When we do any operation in an editor like adding an image at a particular point or editing a link, the mouse cursor focus shift to the top of the page making us scroll all over to again.

Attached video of the issue.

Wordpress 5.1 on Chrome latest browser, Windows 10 OS.

Gutenberg cursor focus shift to top after adding image or editing links.zip

@youknowriad
Copy link
Contributor

In my testing, the cursor don't move but yeah the block is scrolled to the top. And it concerns only the "classic block". Any particular reason you're using the classic block instead of converting your post to smaller blocks?

cc @iseulde @azaozz in case any of you have ideas, are aware about this bug.

@youknowriad youknowriad changed the title Mouse cursor focus shift to top after adding image or editing link The classic block scrolls the to top after adding image or editing link Feb 27, 2019
@youknowriad youknowriad added [Type] Bug An existing feature does not function as intended [Block] Classic Affects the Classic Editor Block labels Feb 27, 2019
@ellatrix
Copy link
Member

I thought we fixed this in #12415? Or is it just that it scrolls the caret moves out of view?

@youknowriad
Copy link
Contributor

in my testing, if I type "arrow keys" right after, it works properly, but yeah the block had already scrolled to the top without touching the caret.

@ellatrix
Copy link
Member

Maybe we need to "scroll into view" after setting the caret back.

@glendaviesnz
Copy link
Contributor

A temporary fix for this has been merged, but see @pento's comment for details about a fix needed in core for this - #23544 (comment)

@youknowriad
Copy link
Contributor

Do we have a core trac ticket to reference here?

@skorasaurus skorasaurus added [Type] WP Core Ticket Requires an upstream change from WordPress. Core Trac ticket should be linked. and removed [Status] In Progress Tracking issues with work in progress labels Feb 18, 2021
@kathrynwp
Copy link

I am no longer seeing this behaviour in the Classic block, with:

WordPress 6.0.1
No plugins active OR Gutenberg 13.6.0 active
Twenty Twenty-Two 1.2

I'm going to go ahead and close this out, but anyone's still experiencing the original issue, feel free to comment or reopen with additional details on how to replicate. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Classic Affects the Classic Editor Block [Type] Bug An existing feature does not function as intended [Type] WP Core Ticket Requires an upstream change from WordPress. Core Trac ticket should be linked.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants