-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[WIP] Post Template: Add click handler for switching between selected blocks when clicking on the block preview #37519
Conversation
…s when clicking on the block preview
Size Change: +62 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Just adding a quick update of where this PR is at before I wrap up for the year (I'll be back in a couple of weeks): This PR seeks to enable clicking directly between blocks within the Query Loop post template and different instances of the loop. For example, if you currently have the Post Title selected within the loop, and then select the post excerpt from another instance of the loop (E.g. the next preview), then ideally we should immediately select that block, instead of moving focus to the parent container. The way we currently do that, is to switch off the I'm not too sure what the solution is here — without switching off I've added a comment in #37154 (comment) as it sounds like there was a similar issue in the Comment Template block. |
Closing out this PR now as it's quite stale. |
Description
🚧 🚧 🚧 🚧 🚧 🚧
Follows on from discussion in #37154 (comment) and #36431.
This is a WIP exploration PR at the moment, details TBC.
The goal is to ensure in the Post Template block, that when clicking between blocks within instances of the Query Loop, that when the block context is switched to another instance of the loop, we also change the selected block to the block that the user clicked on. This is to help it not feel like the user is dealing with a preview, but with a normal editor canvas.
How has this been tested?
TBC
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).