Autocomplete (Tags style) widget not working with multi-value field

Created on 24 June 2023, about 1 year ago

Problem/Motivation

I configured my multi-value entity reference field's form display as 'Autocomplete (Tags style)' yet it renders as a regular Autocomplete widget and only lets me select one value. If I try typing in part of another reference's title, it does not autocomplete that one. It also is not rendering as a tag, as I thought it might (like it did in D7). I am unsure what the expected behavior is, but this does not seem right.

See attached screenshot. I am running into this on both D9 and D10. I tested with Claro and Olivera as my admin theme on D10, and with Claro and Bartik as my admin theme on D9. The issue was the same in all cases.

There are no JavaScript errors, nor any errors in the Drupal watchdog / logs.

Steps to reproduce

Create an entity reference field and configure it to display with 'Autocomplete (Tags style)'.

Proposed resolution

No idea! Just flagging it.

Remaining tasks

Fix it :)

User interface changes

Make the 'Autocomplete (Tags style)' work with multi-value fields and, assuming it is intended to render with some tag-like styling, render it with tag-like styling.

API changes

Unknown.

Data model changes

Unknown.

Release notes snippet

n/a

πŸ’¬ Support request
Status

Fixed

Version

9.0

Component
FieldΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States caspervoogt

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

Comments & Activities

Production build 0.71.5 2024