Post Template Block: Clicking between post contexts in the editor canvas unexpectedly selects the parent #35944
Labels
[Block] Post Template
Affects the Post Template Block
[Type] Bug
An existing feature does not function as intended
Description
Within a Query Loop block that uses the Post Template block, the post template only renders one of the post contexts as "real" blocks at a time. If a user goes to select a single block within the post template, and then scrolls down to select a similar block in the next post within the Query loop, upon the first click, the container "Post Template" block is selected instead of the target block.
Clicking again on the desired block restores selection to the desired block.
It would be good if when switching the context of the Post Template block, we can also then set the selected block to the one that the user clicked on within the list of blocks. It's a subtle issue, but I think it would improve navigating around the blocks within the query loop.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: