After updating my site to Drupal 10.0, the iconpicker selector stopped working.
It kept throwing the following error:
Uncaught TypeError: $(...).once is not a function
at Object.attach (script.js?rniisq:10:10)
at drupal.js?v=10.0.0:166:24
at Array.forEach ()
at Drupal.attachBehaviors (drupal.js?v=10.0.0:162:34)
at drupal.init.js?v=10.0.0:32:12
at HTMLDocument.listener (drupal.init.js?v=10.0.0:20:7)

CommentFileSizeAuthor
#6 3329709-1.patch938 byteshugestem
#2 3329709-2.patch529 bytes_pratik_
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • 1.0.x Comparecompare
  • 1 hidden branch
  • 3329709-1.patch Comparechanges, plain diff MR !1

Comments

hugestem created an issue. See original summary.

_pratik_’s picture

StatusFileSize
new529 bytes

Try using this patch.
Thanks

s3b0un3t’s picture

Thanks for your feedback. I am currently on Christmas holidays, without a computer. I will apply your patch and provide a new release when I return.

s3b0un3t’s picture

Assigned: Unassigned » s3b0un3t
Status: Active » Needs review

hugestem’s picture

StatusFileSize
new938 bytes

I was able to get it to work again by updating the script.js and #2 patch applied

  • S3b0uN3t committed a27f4b50 on 1.0.x
    #3329709 :Fix missing "jquery.once" library dependency (Thanx to @...
s3b0un3t’s picture

Status: Needs review » Fixed

Thanks for your help. I close issue and generate a new release (1.0.3).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.