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

Pressing enter multiple times in the content of a Pullquote or Quote block causes unintended behavior #27690

Closed
jd-alexander opened this issue Dec 11, 2020 · 2 comments
Labels
[Block] Pullquote Affects the Pullquote Block [Block] Quote Affects the Quote Block Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended

Comments

@jd-alexander
Copy link
Contributor

jd-alexander commented Dec 11, 2020

Describe the bug
When you create a Pullquote or Quote and you press enter multiple times in the middle of the block's content it starts moving the cursor a character forward and then it puts that character on a new line.

To reproduce
Steps to reproduce the behavior:

  1. Open the Mobile Editor.
  2. Add a Quote or Pull Quote block to the canvas.
  3. Enter a paragraph of text.
  4. Place the cursor in the center of the content.
  5. Press enter multiple times.
  6. Notice that each time you press enter and a new line is created, the cursor is moved after the character.

Expected behavior
The cursor shouldn't be moved at all. When you press enter in front of any text and the new line is created the cursor should be in front of the content.

Screenshots

Pullquote Quote

Smartphone (please complete the following information):

  • Device: Google Pixel 4 XL
  • OS: Android 11
  • Version : WP Android alpha-261 - Gutenberg Mobile 1.43
@jd-alexander jd-alexander added [Type] Bug An existing feature does not function as intended Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Block] Quote Affects the Quote Block [Block] Pullquote Affects the Pullquote Block labels Dec 11, 2020
@jd-alexander jd-alexander changed the title Pressing enter multiples in the content of a Pullquote or Quote block causes unintended behavior Pressing enter multiple times in the content of a Pullquote or Quote block causes unintended behavior Dec 11, 2020
@fluiddot
Copy link
Contributor

fluiddot commented Feb 4, 2021

👋 I'm not sure if it's related to the device but I can't manage to reproduce it on my device, here is a video capture:

quote-block-multiline.mp4

Smartphone (please complete the following information):

  • Device: Samsung Galaxy S20 FE 5G
  • OS: Android 10
  • Version: WordPress for Android - Pre alpha - Build 94309

@AmandaRiu
Copy link
Contributor

Tested on a physical device (pixel 4) on Android 11 using the Gboard. Issue is no longer happening:

Tapping each letter:

screencapture-1626114178325.mp4

Swiping words:

swipe.mp4

I think we are good to close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Pullquote Affects the Pullquote Block [Block] Quote Affects the Quote Block Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants