Can't reset a link field using predefined link text

Created on 5 April 2022, over 2 years ago
Updated 4 June 2023, over 1 year ago

As of Drupal 9.3, we have a problem with the Link widget and the Link Icon module.

Our case:

  • Link field is not required.
  • Link field has "Predefined" link text with several options.
  • Link field has no default value (URL and Link text are empty).

Expected behavior:

When data exists in Link field (URL and Link text), user should be able to erase URL and set Link text to "-Select-" (value = blank) to delete the link.

Actual behavior:

There is no way to reset the Link field to it's initial empty state. Setting Link text to "-Select-" does not clear the "required" class from the URL input, so user cannot save the node due to client-side validation.

💬 Support request
Status

Closed: outdated

Version

1.7

Component

Code

Created by

🇺🇸United States bmelvin1

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇩Indonesia gausarts

    I just have been able to see to it.
    I don't see such problems at D9.5.10.

    Assumed core issues, and they already fixed it.

    Thank you.

Production build 0.71.5 2024