Mobile: Multiline Components: Loss of Previous Lines when Starting Multiple New Lines #29861
Labels
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Priority] High
Used to indicate top priority items that need quick attention
[Type] Bug
An existing feature does not function as intended
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:
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.
Device information
The text was updated successfully, but these errors were encountered: