Skip to content

Blocks can still be inserted from the list next to the inserter even if useOnce is true #3968

@fastlinemedia

Description

@fastlinemedia

Issue Overview

I've created a block and set useOnce to true, however I'm still able to insert it when it shows up in the quick links next to the inserter. Notice in the screenshot below how my Test Block is greyed out in the actual inserter but can still be highlighted and clicked in the quick links.

screenshot 2017-12-12 21 50 18_preview

Steps to Reproduce (for bugs)

  1. Create a block with useOnce set to true.
  2. Use the block enough times that it shows up in the quick links.
  3. You can insert it more than once using the quick links even though useOnce is true.

Expected Behavior

You should be able to only insert the block once.

Current Behavior

You can insert the block more than once.

Metadata

Metadata

Assignees

Labels

Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions