Query Loop: Incorrect inspector controls when selecting inner blocks #47101
Labels
[Block] Query Loop
Affects the Query Loop Block
[Feature] Inspector Controls
The interface showing block settings and the controls available for each block
[Type] Bug
An existing feature does not function as intended
Description
When a query block is added to a post, page, or template. If you select it then an inner block such as the Post Title, then select the Post Title for a second post within the same Query block, you'll get duplicate controls in the block inspector sidebar.
Multiple git bisect attempts pointed to the commit for #46728 (f752350)Cause was elsewhere.Expected:
Selecting each block would display only the controls for that block.
Actual:
Duplicate controls are rendered in the sidebar. It appears that the block clientId isn't distinct
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
On Trunk or with f752350 checked out
Screen.Recording.2023-01-12.at.4.46.12.pm.mp4
Last Good Commit 072448e
Screen.Recording.2023-01-12.at.4.44.31.pm.mp4
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: