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

Writing Flow: Hitting Enter creates a new block at the beginning of a container block instead of after the current block. #37445

Closed
youknowriad opened this issue Dec 16, 2021 · 0 comments · Fixed by #37453
Assignees
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@youknowriad
Copy link
Contributor

Description

Generally blocks that are not textual (images for instance) have a specific behavior that allows you to hit "Enter" when the block is selected to create a new block right after it.

That behavior is not working properly when the selected block is inside a container block (group for instance), while it works properly if the block is at the root level of the editor.

Step-by-step reproduction instructions

  1. Insert an image block
  2. Group the image block to move it inside a group
  3. Click the image block placeholder
  4. Hit "Enter"
  5. A new block is created before the image placeholder, or more exactly, it's created at the beginning of the container block. (it should be created after)

Screenshots, screen recording, code snippet

No response

Environment info

Gutenberg trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@youknowriad youknowriad added [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended labels Dec 16, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants