Closed (fixed)
Project:
Textfield Counter
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2025 at 17:50 UTC
Updated:
16 Jun 2025 at 21:04 UTC
Jump to comment: Most recent
Comments
Comment #3
daniel korteComment #4
uttam commentedI have reviewed the changes and confirmed that it correctly replaces the deprecated
$.trim()function with JavaScript’s native.trim(),which is fully compatible with jQuery 3.5+ and the modern browser environment used in Drupal 11. The change does not alter the core functionality, as.trim()provides the same behavior as $.trim(), ensuring that the text value is properly trimmed before processing.After testing from the branch
3510732-.trim-is-not, I tested the character counting functionality in text fields, and everything works as expected without any errors. The update does not introduce any regressions, as.trim()is widely supported in modern JavaScript. Since the fix is correct and verified, I am moving this issue to RTBC.Comment #5
uttam commentedComment #6
mably commentedFix included in the following issue: #3527955: Switch to Vanilla JS.
Any feedback will be greatly appreciated.
Comment #7
mably commented