Support other modules that provide their own field widget plugins (e.g. Select2)

Created on 22 February 2022, about 3 years ago
Updated 10 October 2023, over 1 year ago

Problem/Motivation

Currently this module provides its own field widget to show taxonomy parents as an <optgroup>.

This is fine for some use cases, but it means you cannot use this module in conjunction with another field widget.

In our case, we want to use select2 .
The select2 JS library has its own support for <optgroup> and the select2 module provides its own field widget plugin, so it cannot be used with this module.

Ideally this module could be used with the select2 module, and any other module that wanted to utilise <optgroup> elements.

Steps to reproduce

Proposed resolution

Provide an @EntityReferenceSelection plugin to render lists of taxonomy terms with <optgroup> as parents (in the same way that the OptgroupTermSelectWidget plugin does).

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.2

Component

Code

Created by

🇬🇧United Kingdom leon kessler

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.

Production build 0.71.5 2024