-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Description
If you delete the value of the height option and save, and then refresh the page (or leave and return to edit the content later), there is a block validation error.
I only tested this with block themes that have a theme.json. I tested with the default spacing presets and with custom presets.
When there is a custom spacing preset that uses clamp, like in Twenty Twenty-Five, there is one more issue.
If you select a spacing preset, then toggle the "use size preset" button so that the size input and unit input options show again, and then change the unit but not the size, then the size is also missing and the same block validation error shows.
Step-by-step reproduction instructions
Insert a spacer block.
Delete the value of the height option and save, and then refresh the page.
Screenshots, screen recording, code snippet
Environment info
WordPress 6.7.1 with and without Gutenberg trunk.
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure