allow form elements to override Chosen library options

Created on 18 March 2024, 4 months ago
Updated 2 May 2024, 2 months ago

Problem/Motivation

It would be useful if individual form elements could override the options passed to the Chosen library. For example, a select element whose items are all long_machine_names_with_underscores might want to force search_contains = TRUE.

This could be done if this line added to what was potentially already there rather than clobber:

  $element['#attached']['drupalSettings']['chosen'] = [

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024