Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3547622-token-jquery4-fix.patch1.04 KBmukeshaddweb

Comments

mubasshir khan created an issue. See original summary.

mukeshaddweb’s picture

Status: Needs work » Needs review
StatusFileSize
new1.04 KB

Drupal 10.5.x upgraded jQuery from 3.x to 4.0.0. jQuery 4.0 removed event shorthand methods like .focus(handler) and .click(handler).
The Token module's token.js uses both of these removed methods, causing a JavaScript error that breaks the tokenInsert behavior

The attached patch replaces both deprecated event shorthand calls in js/token.js with .on() equivalents

Please test this patch and let us know if it resolves your issue. If this patch does not fix the problem, please provide the more details so we can investigate further