gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Text Block: Sometimes the cursor gets moved behind the first character

Open shaunandrews opened this issue 9 years ago • 10 comments

weird text bug

In the gif above, you'll notice that as soon as I start typing, my cursor gets positioned behind the first letter. Very strange.

Just a guess, but maybe something related to the drop cap feature?

shaunandrews avatar Jun 30 '17 13:06 shaunandrews

I cannot reproduce this.

westonruter avatar Jul 08 '17 01:07 westonruter

I also can't reproduce this, with or without dropcap enabled, in Safari.

jasmussen avatar Aug 18 '17 09:08 jasmussen

Going to close for now. @shaunandrews feel free to reopen if you still see this.

mtias avatar Aug 18 '17 20:08 mtias

I have definitely seen this bug, also on Safari. I don’t know how to replicate it exactly, but I think it happens when you click outside of a paragraph, then inside and continue to write.

Then, the cursor is sometimes before the last letter instead of being at the end.

I’ll try to find a more reproducible explanation.

nicolinuxfr avatar Aug 18 '17 21:08 nicolinuxfr

Sorry, I can’t reproduce it when I want to. But I still this behavior with Gutenberg 0.9.

Sometimes, the cursor moves to the last styled text in the current block (may it be bold or italic). I don’t know exactly how it happens, but I have to deal with this bug at least once or twice per post, on average.

nicolinuxfr avatar Aug 19 '17 17:08 nicolinuxfr

OK, I found one reliable and reproducible way to have the bug :

  1. Click the preview button to load the preview in another tab or window
  2. Click in the paragraph of the Gutenberg window to continue editing
  3. The cursor is placed at the wrong place.

Here’s a short video demonstrating it :

bug-cursor

nicolinuxfr avatar Aug 20 '17 14:08 nicolinuxfr

Reopening because of the excellent bug report, thank you!

jasmussen avatar Aug 21 '17 06:08 jasmussen

This can also be replicated by clicking on 'Settings' to toggle the panel on the right side.

tg-ephox avatar Aug 24 '17 01:08 tg-ephox

closed by #2787

youknowriad avatar Oct 12 '17 21:10 youknowriad

Ooh nice! Does this fix the 2nd issue that I noted here? https://github.com/WordPress/gutenberg/pull/2779#issuecomment-336053813

CC: @tg-ephox @annaephox

jasmussen avatar Oct 13 '17 06:10 jasmussen