Autocomplete textfield surrounds titles with double quotes

Created on 4 September 2025, 26 days ago

Problem/Motivation

If using autocomplete in a textfield, on Drupal titles (article and page titles etc), then when you start typing in the text field, and select a suggestion, If the title of a node has a comma, it splits the title into multiple entities by comma and encloses the title in double-quotes sometimes the textfield is populated as expected, but with double quotes either side of the chosen string.

Steps to reproduce

/admin/structure/types/manage/page/fields
Add Entity reference, Reference type: Content, Content type: Basic page.
Save
Edit an existing Basic page and add commas to the title.
Save
Create a Basic page and add the above Basic page to the Entity Reference field
and try to save

Proposed resolution

This was working prior to the latest release

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.5 ✨

Component

ajax system

Created by

πŸ‡ΊπŸ‡ΈUnited States webwags

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

Comments & Activities

Production build 0.71.5 2024