$.trim is not a function

Created on 3 March 2025, 4 months ago

Problem/Motivation

Console errors in Drupal 11.1.3 saying "$.trim is not a function"

Steps to reproduce

jQuery trim() API has been deprecated in jQuery 3.5 and Drupal 11 uses jQuery 4

Proposed resolution

Replace $.trim with native trim() JS function

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States daniel korte Brooklyn, NY

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024