PanelBody collapsing when using a control
I'm experiencing a weird issue that's happening only when I have the Gutenberg plugin active in my install (latest version, 6.0.0); this doesn't happen with the Block Editor bundled with WP.
I have a container block, with custom columns in it, that I want to add. The container block has a series of InspectorControls associated to it, and so do the custom column blocks.
After the first insertion, if I try to modify a property with a control within the container's InspectorControls, the PanelBody that I had to manually open, since they all start collapsed, instantly collapses.
The data is saved correctly, though.
I've made a video of the behavior:
https://youtu.be/GaySLr-mMJQ
Once this weird behavior has manifested itself once, the subsequent interactions with those controls are normal, and the PanelBody doesn't collapse anymore.
Weirdly enough, if I unselect and re-select the container block, and try to do the exact same thing, the PanelBody stays open.
I've tried to come up with an explanation for this, and the only way I've found out to avoid this is removing the InspectorControls completely from the custom column blocks, which, of course, is not a solution, since we need those controls to edit the properties of the columns.
Desktop:
- Chrome (latest version),
- Firefox (latest version)