-
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
Comment Template: Improve selection for the inner blocks #37154
Comments
Thanks for the ping! That PR seeks to address part of the problem (preserve the wide layout alignment, remove flicker / unintentional scroll when switching the current block context). There's another problem to deal with, that I thought could be good for a follow-up, which is to see if it's possible in the click handler when switching block contexts, to also then set the currently selected block to the one that the user clicked on within the block preview. I'm not quite sure how feasible it is to do that neatly, so thought it'd make a good potential follow-up if that PR winds up landing. (Happy to explore within that PR if folks think it's better to try to deal with it all at once, of course!) |
A quick update, I have just merged #36431 that radically improves the experience around the block selection for the Query Loop block.
It's a very tricky issue we deal with here because we mostly show block previews but at the same time we have to support full interactivity for the currently selected block. Let us know when you have a prototype ready so we can stay in the loop. |
Will do! Thanks for approving and merging in #36431 for me — now that we have that PR in, it should be easier to focus on this problem in isolation 🤞 |
I'm not sure if this helps, but I ran into a similar issue in my WIP PR in #37519 for the Post Template block when I removed Apologies if that doesn't quite make sense — I'm a little fuzzy on how those pieces interact. I haven't noticed the above issue in the Query Loop (not comments) block in testing on |
@andrewserong, @michalczaplinski opened #38263 with initial changes necessary to mitigate the issues with inner block selection for the Comment Template block. We would appreciate your help there. |
Description
Originally reported in #36065 (review):
Confirmed in #36065 (comment) by @michalczaplinski:
It might be the same issue that @andrewserong is trying to resolve for Query Loop and Post Comment in #36431.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2021-12-02.at.12.17.25.mov
Environment info
trunk
in GutenbergPlease 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: