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

Post Template Block: Clicking between post contexts in the editor canvas unexpectedly selects the parent #35944

Open
andrewserong opened this issue Oct 26, 2021 · 0 comments
Labels
[Block] Post Template Affects the Post Template Block [Type] Bug An existing feature does not function as intended

Comments

@andrewserong
Copy link
Contributor

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

  1. Ensure your site has at least two published posts
  2. With an FSE theme like TT1-Blocks active, go to the site editor and view a list of posts within a Query Loop block (containing the Post Template block)
  3. Click on a block within the Post Template block of the query loop (e.g. click on Post Content)
  4. Scroll down the page and click on a similar block in the next post within the query loop
  5. Note that it takes two clicks to get to the block you wish to select

Screenshots, screen recording, code snippet

Kapture 2021-10-26 at 16 51 36

Environment info

  • GB trunk
  • TT1-Blocks theme
  • A Query Loop post in the Index template containing a Post Template block with Post Title, Post Content, Post Date/Author blocks within it

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Template Affects the Post Template Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant