bencarr / statamic-hyperlink

Hyperlink is a Statamic addon that expands the default Link fieldtype and allows you to store link text and target options alongside the link destination.
https://statamic.com/addons/bencarr/hyperlink
3 stars 1 forks source link

Changing field back to "None" and saving does not empty out the link data #20

Closed aaronbushnell closed 1 month ago

aaronbushnell commented 1 month ago

We have a Hyperlink field that can't be set from a value back to "None" without manually updating the YAML file. Here's how to recreate this issue:

  1. Add a Hyperlink field to a blueprint and create a new entry
  2. Set the field to "URL" and fill out some dummy content
  3. Save the entry and refresh
  4. Change the URL field to the "None" option
  5. Save and refresh
  6. The field shows the old value and "None" has not emptied out the field in the YAML file
bencarr commented 1 month ago

Thanks, @aaronbushnell! v3.0.3 is out now with a fix for this issue.

aaronbushnell commented 1 month ago

Thanks so much, @bencarr!