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

Text highlighting (selection) issues in versions since 17.4.0 #57894

Closed
tommusrhodus opened this issue Jan 16, 2024 · 4 comments · Fixed by #58684
Closed

Text highlighting (selection) issues in versions since 17.4.0 #57894

tommusrhodus opened this issue Jan 16, 2024 · 4 comments · Fixed by #58684
Assignees
Labels
Needs Testing Needs further testing to be confirmed. [Package] Rich text /packages/rich-text [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@tommusrhodus
Copy link

Description

Text selection is buggy in Gutenberg versions 17.4.0+, 17.3.x versions tested do not exhibit this issue.

Selecting text seems to result in incomplete selections as your selection "flashes" back an arbitrary selection of text. Best described by the attached video.

Note: attached video is on a custom theme, but this issue is easily reproduced on a fresh install.

Step-by-step reproduction instructions

  1. Create a fresh install of WordPress.
  2. Install Gutenberg 17.4.0+
  3. Go to the auto created "sample page"
  4. Select text in the blockquote block, full selection, partial selection (may take a few re-selections to trigger)
  5. Observe the selected text flash to an arbitrary substring of what you actually selected.

Screenshots, screen recording, code snippet

https://www.loom.com/share/adeb45b1296f423c9fe4a57f0cd44195?sid=5f1d3458-3e95-472c-8fa6-a3994c1cea55

Environment info

  • WordPress Latest
  • Gutenberg 17.4.1
  • Chrome 120.0.6099.216

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

@tommusrhodus tommusrhodus added the [Type] Bug An existing feature does not function as intended label Jan 16, 2024
@jordesign jordesign added Needs Testing Needs further testing to be confirmed. [Package] Rich text /packages/rich-text labels Jan 16, 2024
@tommusrhodus
Copy link
Author

Confirming this bug still occurs in Gutenberg 17.5.0

I've found it most reproducible if you end your selection (let go of mouse click) outside the bounds of the block you're selecting text in. e.g In a blockquote block, select all the text then keep mouse dragging until you're out of the left-hand bounds of the block, upon releasing the mouse click you should see the selection jump to only a portion of the string, rather than the whole block.

Screen.Recording.2024-01-18.at.10.12.14.mov

@tommusrhodus
Copy link
Author

Confirming this issue still exists as of release 17.5.2

@toncijajic
Copy link

Issue still exists in Version 17.6.1

@draganescu
Copy link
Contributor

#58552 should have fixed this in trunk unless I am mistaking the bug in being similar to #58465

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Testing Needs further testing to be confirmed. [Package] Rich text /packages/rich-text [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants