Skip to content

Subquery block missing support for drag and drop #240

@ellm

Description

@ellm

Description of the bug

While the Move Post button is available within a Subquery block, it is not possible to move the post within a Subquery only to positions in the Query block.

Steps To Reproduce

  1. Create a new Query block with a nested Subquery block.
  2. Pin a post within the Subquery block.
  3. Attempt to Move Post to a new position. Only positions in the Query block are available.

Additional Information

Example code for creating Query with Subquery

<!-- wp:wp-curate/query {"postTypes":["post"],"posts":[null,null,null,null,null]} -->
<div class="wp-block-wp-curate-query"><!-- wp:post-template -->
<!-- wp:wp-curate/post -->
<div class="wp-block-wp-curate-post"><!-- wp:post-title {"isLink":true} /-->

<!-- wp:wp-curate/subquery {"numberOfPosts":2,"postTypes":[{"name":"Post","slug":"post"}],"posts":[null,null],"terms":{"category":[],"post_tag":[]},"uniqueId":"87552371-c7f9-4175-9105-d5ab61240864"} -->
<div class="wp-block-wp-curate-subquery"><!-- wp:post-template -->
<!-- wp:wp-curate/post -->
<div class="wp-block-wp-curate-post"><!-- wp:post-title {"level":3,"isLink":true} /--></div>
<!-- /wp:wp-curate/post -->
<!-- /wp:post-template --></div>
<!-- /wp:wp-curate/subquery --></div>
<!-- /wp:wp-curate/post -->
<!-- /wp:post-template --></div>
<!-- /wp:wp-curate/query -->

Metadata

Metadata

Assignees

Labels

gutenbergRequires understanding GutenbergjavascriptRequires understanding JavaScripttypescriptRequires understanding TypeScriptuxDesigning and implementing user experience improvements

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions