Stackable icon indicating copy to clipboard operation
Stackable copied to clipboard

Price Block - removed price text reappears upon page reload

Open malalacharm opened this issue 5 months ago • 1 comments

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:

  1. Add a page
  2. Add a Price Block
  3. Select the cents text and unlock to delete the text
  4. Delete the text
  5. Check on frontend
  6. 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

malalacharm avatar Jul 21 '25 09:07 malalacharm

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?

Arukuen avatar Oct 10 '25 01:10 Arukuen