Skip to content

(Android) Splitting and merging a Paragraph/Heading block doesn't work correctly #29478

Description

@geriux

Description

While running the writing flow tests on the Mobile editor release 1.48.0 an issue was found regarding splitting and merging content in a Paragraph/Heading block.

Step-by-step reproduction instructions

  1. Open the mobile editor
  2. Write (or paste) a paragraph with a few lines
  3. Set the caret by the half of the paragraph
  4. Press Enter (Intro) to split the block into two. (if using the simulator, use the device keyboard)
  5. Move the caret a few words.
  6. Delete all those words until the blocks merge.
  7. See that the original content of the first Paragraph block shows up causing the content to be duplicated.

Expected behaviour

The two blocks should merge without any content duplication.

Actual behaviour

After emerging the two blocks the original content of the first Paragraph block returns causing content duplication.

Screenshots or screen recording (optional)

Screenrecorder-2021-03-02-14-29-38-946.mp4

Device information

  • Device: Redmi Note 8T (Or Pixel simulator)
  • Operating system: Android 10

Activity

  1. added
    Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
    on Mar 2, 2021
  2. geriux commented on Mar 2, 2021

    @geriux
    MemberAuthor

    This is a regression from #28505.

  3. changed the title [-](Android) Splitting and merging a Paragraph block doesn't work correctly[/-] [+](Android) Splitting and merging a Paragraph/Heading block doesn't work correctly[/+] on Mar 2, 2021
  4. added
    [Type] BugAn existing feature does not function as intended
    on Mar 2, 2021
  5. cameronvoell commented on Mar 3, 2021

    @cameronvoell
    Member

    @geriux I was taking a look at this and don't have a solution yet but I did find some simpler steps to reproduce:

    1. Paste text
    2. move cursor halfway and use emulator keyboard to press enter
    3. Switch to HTML mode
    4. Notice incorrect text
      *Note if you use those same steps with your computers physical keyboard controlling the emulator to press enter, the correct text will show in html mode.
      broken-text
  6. reopened this on Mar 5, 2021
  7. geriux commented on Mar 5, 2021

    @geriux
    MemberAuthor

    Reopening since the first approach to fix it didn't work.

  8. removed their assignment
    on Mar 5, 2021
  9. geriux commented on Mar 8, 2021

    @geriux
    MemberAuthor

    I just reverted the PR I made to try to fix it but ended up not working.

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

Metadata

Metadata

Assignees

Labels

Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions