#6735 closed defect (bug) (worksforme)
Add support for `ancestor` block.json property for on-page block plugin search, and insertion
Reported by: | randhirexpresstech | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
If a block plugin use ancestor-child relationship blocks then there are following issue occurs:
- Search feature for block plugin inside the Block Editor results in child block, instead it should show the ancestor (or main) block name.
- After block plugin installation on-page via block-editor, Block editor try to insert child block instead of ancestor block. As a result, admin don't get to see any block inside page after block plugin installation.
Block plugin validator recently fixed a bug - Add support for ancestor
block.json property https://meta.trac.wordpress.org/ticket/6465 but still there are some issues left for fixed inside block editor.
Change History (6)
This ticket was mentioned in Slack in #core-editor by randhirexpresstech. View the logs.
22 months ago
#3
in reply to:
↑ 2
@
21 months ago
Replying to ryelle:
@randhirexpresstech I just tried to replicate this on the latest version of Gutenberg, and when I search for
form
I get the parent Form block (gutena/forms
). I can't seem to get the Confirmation block to show up even if I search forconfirmation
. Are you still seeing this issue?
Thanks @ryelle for checking this issue. After getting this issue we reverted back our changes in our block plugin. You can replicate this issue by changing parent to ancestor in child block's block.json in any block plugin which is submitted to wordpress.org block directory.
#4
@
20 months ago
- Resolution set to invalid
- Status changed from new to closed
I am also experiencing this with my plugin that includes 3 blocks (https://wordpress.org/plugins/infinite-scroll-block/).
My top level block (apedestrian/infinite-scroll) uses core/query as the parent while my other 2 use apedestrian/infinite-scroll. Despite this, the "Loading" child block is the only result when searching infinite scroll inside the editor
I am using "parent" instead of "ancestor" inside all the block.json files
#6
@
19 months ago
- Resolution set to worksforme
- Status changed from reopened to closed
I removed then added my plugin back to the block repository via the validator tool and that fixed my issue
@randhirexpresstech I just tried to replicate this on the latest version of Gutenberg, and when I search for
form
I get the parent Form block (gutena/forms
). I can't seem to get the Confirmation block to show up even if I search forconfirmation
. Are you still seeing this issue?