Skip to content

Mobile: Multiline Components: Loss of Previous Lines when Starting Multiple New Lines #29861

Closed

Description

@SiobhyB

Description

When entering multiple new lines in a block that has a multiline component, the cursor sometimes behaves in an unexpected way (either moving to the top of the block or moving to a brand new block) and this can lead to lines being wiped/lost.

I have been able to replicate this on Android devices only and with the following four blocks: Quote, Verse, Preformatted, Pullquote

This is similar to the issue described in #27690, but I'm creating a separate issue as it's slightly different in that I've been able to replicate this while the cursor is at the end of the block and there is a loss of lines/content in this scenario.

Similar to this issue, there are times where the steps work as expected and it can be tough to reliably reproduce this. You'll see in this thread that I had mistakenly thought this was specific to a new branch as I'd had difficulty replicating on the main branch. I've since been able to replicate this on the latest alpha version of the Android app.

Step-by-step reproduction instructions

The most reliable way I have found to replicate this issue is as follows:

  1. In the post editor on an Android device, add a new Quote or Pullquote block.
  2. Enter a line of text and then tap the enter key twice in succession.
  3. Notice how the second empty line is removed.

Expected behaviour

In the steps provided, I would expect the block to contain three lines, with the second line being empty and my cursor being in the third line.

Actual behaviour

The second (empty) line is removed in the above steps. The user in this scenario should be typing into the third line, but this ends up being the second line:

Removed.pullquote.line.mov

Although trickier to reliably reproduce, I have been able to replicate what you see in the following video on the latest version of app, where actual text (rather than just an empty line) is removed when entering multiple lines in a multiline component:

preformatted.mov

WordPress information

Tested using a simple (no plugins) WordPress.com site.

  • WordPress version: 5.7
  • Gutenberg version: 10.1.1
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: Pixel 5
  • Operating system: Android 11
  • WordPress app version: 16.8.1

Activity

  1. added
    Mobile App - i.e. Android or iOS
    on Mar 15, 2021
  2. changed the title [-]Mobile: Multiline Components: Loss of Previous Lines when Starting Multiple New lines[/-] [+]Mobile: Multiline Components: Loss of Previous Lines when Starting Multiple New Lines[/+] on Mar 15, 2021
  3. added
    [Feature] Writing Flow
    [Priority] Low
    on Mar 15, 2021
  4. mchowning commented on Mar 16, 2021

    @mchowning
    Contributor

    I initially overlooked that it was possible to lose content beyond an empty line here, so updating the priority to be High.

  5. added
    [Priority] High
    and removed
    [Priority] Low
    on Mar 16, 2021
  6. AmandaRiu commented on Jul 12, 2021

    @AmandaRiu
    Contributor

    FYI: This is still an issue as of 1.57.0. I was in here already completing writing flows tests so I thought I'd make a note of it.

    verse-block.mp4

    Tested on physical Pixel 4 running Android 11 w/ Gboard

  7. added
    [Type] Bug
    on Aug 17, 2023
  8. SiobhyB commented on Dec 20, 2023

    @SiobhyB
    ContributorAuthor

    I tested this in the most recent production build (23.8.1) and have not been able to reproduce. As there have been no other reports since July, 2021, I assume this has been resolved. Going ahead to close this issue 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mobile App - i.e. Android or iOS[Feature] Writing Flow[Priority] High[Type] Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions