Field widget broken if there's multiple link fields, one without link text enabled

Created on 30 July 2025, 3 days ago

Problem/motivation

In this scenario:

  • Content type with two link fields, Field A and Field B
  • Field A configured to NOT allow link text; Uses LinkIt field widget
  • Field B configured with OPTIONAL link text; Uses LinkIt field with "auto populate link text" checked

Then Field A's widget becomes broken. The autocomplete dropdown shows, but clicking an item from it does nothing. It doesn't populate the input with the value from the dropdown.

This is similar to πŸ› When multiple Link fields are present and set to "automatically populate", link title values in other fields can be overwritten Fixed but the fix there didn't go far enough to resolve this scenario.

Steps to reproduce

See above

Proposed resolution

The autocomplete JS needs to be updated. The logic in it for determining if auto populate of link text is enabled for the field widget isn't scoped properly.

This module uses Gitlab CI for automated testing of proposed code changes. To contribute code changes, create a merge request. Patch files will not trigger automated testing and are not sufficient for review.
πŸ› Bug report
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024