wordpress-mobile / wordpress-mobile/GutenbergKit

Prevent the default block appender inserting duplicative default blocks

Open
#98 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement
Dominant language
JavaScript
Stars
29
Forks
6
Avg merge
1d 9h
Merged PRs (30d)
41

Description

What problem does this address?

Default block appender creates duplicate paragraph blocks.

https://github.com/user-attachments/assets/18ccdeef-8a29-41b7-9d9f-11f73a0cc42d

What is your proposed solution?

Match the behavior with the Notes app:

  • If the last block is a paragraph, focus it and put the cursor at the end
  • If the last block is something else, insert an empty paragraph block and focus on it

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the default block appender implementation and reproduce the duplicate paragraph behavior described in the issue and attached video. Verify that an existing final paragraph is focused with the cursor at its end, while a non-paragraph final block causes one empty paragraph to be inserted and focused.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.