-
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
Duplicated settings in inspector controls on Comments Query Loop block #38080
Comments
I reported it also in a comment here: #37154 (comment). I think it's related to the issue with rendering either a loop of the same blocks, or it's coming from the nested blocks. Anyway, we need to improve how we render the Comment Template block and its inner blocks. I think @michalczaplinski is looking into it already. We should find out whether #37154 and this one are separate issues. |
Strangely enough the same issue was mentioned by @andrewserong in #38263 (review) Seems like the problem of having duplicate sidebar controls also came up before in Post Template block #37519 (comment) |
@michalczaplinski I've realised that, in the editor, if you click in any of the inner blocks of the Comment Template, it jumps to the latest comment. I made a quick video to show it: https://www.loom.com/share/ac22dbcb0d25492888df959a3445dc86 Not sure if it is related to this issue, but as both happen only in the editor I thought they could be triaged at the same time. Please let me know if you think it makes sense to open a new one. |
@michalczaplinski and @c4rl0sbr4v0, if you need some help we can pair to work on this one next week. It's a very tricky one and there are several issues with how it works today. We tested a few different scenarios yesterday with @SantosGuillamot and it was very difficult to achieve simple goals like wrapping inner blocks with a Group block or use multiselection, etc. |
Yup, this is a known issue 🙂 These are the 3 the bugs that I'm quite sure are related to the problem of "duplicate settings" that is described in the current issue:
@gziolo That would be great! I have in fact spent a couple of hours trying to come up with a solution yesterday and I haven't made great progress so far :/ It seems to be tricker than I thought. I think it's somehow related to the fact that we are are nesting inner blocks several times (because replies can have replies that can have replies, etc.) |
Status update: This issue has been blocked by two additional issues:
|
Description
When I add a Comments Query Loop, if we set more than 2 items per page. Most of the sidebars options of all inner elements appear
n
times, beingn
equal toitems per page -1
.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
bugSettingsComments.mov
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: