Needs review
Project:
Token
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Oct 2025 at 03:59 UTC
Updated:
30 Jan 2026 at 11:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thatguy commentedI know patch files are not recommended anymore but here is one for anyone who needs the fix quickly. I have to look into using the issue forks...
Comment #3
gueguerreiroDrupal 11 ships with jQuery 4, which means those functions are indeed removed and no longer working: https://www.drupal.org/node/3445202 and https://blog.jquery.com/2024/02/06/jquery-4-0-0-beta/.
However, I see that your patch is also replacing instance of inArray, as far as I can see that one is OK to use? https://api.jquery.com/jQuery.inArray/. It's isArray that has been deprecated instead. Is there a reason why we are also replacing this?
Full disclosure I'm not a JS person :p Setting to Needs Review to see if those changes are within scope. But the changes to trim and isNumeric are indeed necessary.