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

Add block at the top of block #14087

Closed
pilou opened this issue Feb 25, 2019 · 2 comments
Closed

Add block at the top of block #14087

pilou opened this issue Feb 25, 2019 · 2 comments
Assignees
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@pilou
Copy link

pilou commented Feb 25, 2019

Describe the bug
If I click the "Add block" at the top of this block, the new block should be inserted above this block, regardless where the focus is. If the focus is in an empty paragraph the new block is replaces the paragraph block where the input focus currently is.

To Reproduce
Steps to reproduce the behavior:

  1. Create any block
  2. Set focus on empty paragraph below the new block, but don't type anything
  3. Click the "Add block" button of the block created at 1. step
  4. See error, the paragraph is replaced by the block created at 3. step

Expected behavior
The block created at 3. step should be above the block created at 1. stem

Screenshots
https://www.youtube.com/watch?v=YI-ZbFR7UYI

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome

Additional context

  • Tested on vanilla WP 5.1.0
@jorgefilipecosta jorgefilipecosta added [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 Feb 25, 2019
@jorgefilipecosta
Copy link
Member

Hi @pilou thank you for reporting this issue, I'm able to reproduce it in my tests.

@jorgefilipecosta
Copy link
Member

Fixed as part of #14020.

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 [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants