Field widget single element missing library

Created on 1 October 2024, about 1 month ago

Problem/Motivation

When javascript aggregation is enabled, if you only have maxlength enabled on an individual text field. The library is not added or removed by javascript aggregation.

Steps to reproduce

Create a text field without any other fields enabled with max length, add a max length, enable javascript aggregation.

Proposed resolution

Add $element['#attached']['library'][] = 'maxlength/maxlength' to max ength_field_widget_single_element_form_alter

Remaining tasks

  • ❌ Get maintainer approval for the proposed resolution
  • ❌ Implement resolution
  • ❌ Write test coverage (contact a maintainer if you need help)
  • ❌ Maintainer review via the UI
  • ❌ Maintainer Code Review #1
  • ❌ Maintainer code review #2
  • ❌ Merge into dev branch, with credit to author and participants
🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇺🇸United States jeffwpetersen

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

Comments & Activities

Production build 0.71.5 2024