gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Experimental form block is not selectable inside of a group block

Open bradhogan opened this issue 2 years ago • 1 comments

Description

Can't select the form block in list view (so that I can update block specific settings) when the form block is inside of a group block.

Step-by-step reproduction instructions

https://soapbox.wistia.com/videos/LIZKbA5oDo

Screenshots, screen recording, code snippet

No response

Environment info

  • wp 6.4.2
  • gutenberg 17.4.1
  • chrome
  • mac sonoma

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

bradhogan avatar Jan 05 '24 20:01 bradhogan

The same issue is happening when attempting to add the experimental form block to a page/template in the Appearance > Editor section, regardless of whether the block has been added to a group or not.

I've noticed that when editing a page, you can make all the adjustments to the form block before adding it to a group block. The settings configured for the form block still work after adding it to a group.

AmeliaBriscoe avatar May 13 '24 05:05 AmeliaBriscoe

It's not selectable in any nested block. But if I move it to the top level, it's working as expected. So as a workaround, I move the form anytime I need to edit it.

I wanted to see what happens inside using a debugger, and discovered that if I set a breakpoint in the Edit method (or any other triggered by click) it works as expected. However, when I continue fast enough it doesn't work again. So, there is some kind of race condition happens.

astappiev avatar Oct 01 '24 15:10 astappiev