WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.47k stars 4.18k forks source link

Experimental form block is not selectable inside of a group block #57609

Open bradhogan opened 9 months ago

bradhogan commented 9 months ago

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

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

AmeliaBriscoe commented 5 months ago

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.

astappiev commented 2 weeks ago

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.