Cannot clear and save empty signature field

Created on 26 April 2025, about 1 month ago

Problem/Motivation

I think there is a problem in totally clearing and saving as empty a previous signature value. If there was a signature attached to the content type and saved, if you edit the node again, you cannot save a clean signature field (a field without content).

Steps to reproduce

1. Add a signature field to a content type.
2. Edit the content type and add a signature.
3. Save content type.
4. Reopen and edit the signature field.
5. Clear the signature (to save as unsigned / empty) field.
6. The field is not saved as empty (only if rewritten with whatever content).

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇪Ireland marksmith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @marksmith
  • 🇪🇸Spain rodrigoaguilera Barcelona

    Since the underlying data is an image field I think what is happening here is that the "Remove" is not triggered when clearing the canvas.

    Not sure if that would be a viable solution or the button for removing the image should be exposed as some way of starting a fresh canvas deleting the previous image. Saving at this "clean" state will delete the image.

    Let's discuss what should be the correct behavior

  • 🇮🇪Ireland marksmith

    I think that clearing the canvas and saving the content should remove any existing signature image files attached. I cannot figure out any use case where saving an "empty" canvas (signature image) would make sense.

Production build 0.71.5 2024