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

Changing the block settings for the initial block removes the option to add new block #33143

Open
desrosj opened this issue Jul 1, 2021 · 2 comments
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended

Comments

@desrosj
Copy link
Contributor

desrosj commented Jul 1, 2021

Description

After changing any block settings for the default paragraph block on a new post, the inline block inserter is missing.

Originally reported in Trac-53571.

Step-by-step reproduction instructions

1: Add a new post.
2: Focus on the initial block.
3: Modify any of the block setting in the toolbar on the right.
4: Observe the inline inserter is now gone.

Expected behaviour

Inline block inserter remains.

Actual behaviour

It disappears.

Screenshots or screen recording (optional)

Block inserter switches to para

WordPress information

  • WordPress version: 5.8 RC1
  • Gutenberg version: NA
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes
@talldan talldan added [Block] Paragraph Affects the Paragraph Block [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended labels Jul 2, 2021
@Mamaduka
Copy link
Member

I think this is the intended behavior. The empty block inserter is only displayed when the block is unmodified.

isEmptyDefaultBlock:
name && isUnmodifiedDefaultBlock( { name, attributes } ),

@desrosj
Copy link
Contributor Author

desrosj commented Jul 13, 2021

Ah interesting! Any idea why that is? I'm curious about the reasoning behind that choice.

@jordesign jordesign removed the [Block] Paragraph Affects the Paragraph Block label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants