Empty values not getting saved in the post_content #14629
Labels
[Feature] UI Components
Impacts or related to the UI component system
[Status] Needs More Info
Follow-up required in order to be actionable.
Describe the bug
I have created a new Heading block. For padding options, I have used the Range Control. I have provided 15 as the default value for it. I get the default value 15 in the editor. Whenever the value is changed the value gets updated to the post_content but when I reset the values to blank then the values are not updated to the post_content hence the default values are visible even if I save the block with empty values.
Expected behavior
I expected the empty values to be stored in the post_content so that I would be able to differentiate between the values that the user has provided and the default values.
Video
Please refer to this video - https://cl.ly/d04a60bae966.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: