Price Block - removed price text reappears upon page reload
Describe the bug Upon refreshing the page, the previously deleted text in Price block reappears despite being removed during editing
To Reproduce Steps to reproduce the behavior:
- Add a page
- Add a Price Block
- Select the cents text and unlock to delete the text
- Delete the text
- Check on frontend
- Refresh page (see error: cents text is present)
Expected behavior Deleted text should remain removed after page reload.
Screenshots
https://github.com/user-attachments/assets/d8bcec0b-dbd5-49ed-ab90-fa9870c08fc0
The reappearance of removed inner block after unlocking is a normal behavior in the editor, since the block has a locked layout (using templateLock="all"), thus having a fixed template structure. This behavior is also consistent with other blocks, such as stackable/blockquote.
As an alternative, we can simply clear the text content of the cents text instead of deleting the block.
Or do we want to change the templateLock of stackable/price?