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

Block Options insert doesn't honour allowedBlocks #10752

Closed
Ipstenu opened this issue Oct 18, 2018 · 1 comment
Closed

Block Options insert doesn't honour allowedBlocks #10752

Ipstenu opened this issue Oct 18, 2018 · 1 comment
Labels
[Feature] Nested / Inner Blocks Anything related to the experience of nested/inner blocks inside a larger container, like Group or P [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@Ipstenu
Copy link
Contributor

Ipstenu commented Oct 18, 2018

I set a custom block to ONLY allow a specific kind of block on insert.

allowedBlocks={ [ [ 'library/listitem' ] ] }

This lets me add a block below and only adds the block I've permitted. Awesome. However if I then use the Block Options (the ... on the top of the block), it adds a paragraph every time. I can change this by using the slash command /listitem -- which properly is my only option, but it seems illogical that it doesn't honour my default.

list-example

Using WP 4.9.8, Gutenberg 4.0

@chrisvanpatten
Copy link
Contributor

There are a few issues about this (as you saw!) also including #10726 so I'm going to try to consolidate everything into #10301 to keep things cleaner :) Thanks for the gif, I'll link over to that in the other ticket.

@chrisvanpatten chrisvanpatten added [Feature] Nested / Inner Blocks Anything related to the experience of nested/inner blocks inside a larger container, like Group or P [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Nested / Inner Blocks Anything related to the experience of nested/inner blocks inside a larger container, like Group or P [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants