Describe your bug or feature request.

There are JS errors when running Commerce on Drupal 10 ($cartButton.once is not a function), due to the JQuery once library that is no longer shipped with Drupal.

We need to use the drupal/once library instead.

CommentFileSizeAuthor
#2 3334505-2.patch1.58 KBjsacksick

Comments

jsacksick created an issue. See original summary.

jsacksick’s picture

Title: $cartButton.once is not a function » $cartButton.once is not a function on Drupal 10
Status: Active » Needs review
StatusFileSize
new1.58 KB
jsacksick’s picture

Title: $cartButton.once is not a function on Drupal 10 » Cart block is broken on Drupal 10
Issue summary: View changes

  • jsacksick committed a7ecb1aa on 8.x-2.x
    Issue #3334505 by jsacksick: Cart block is broken on Drupal 10.
    

  • jsacksick committed 1295b57d on 3.0.x
    Issue #3334505 by jsacksick: Cart block is broken on Drupal 10.
    
jsacksick’s picture

Status: Needs review » Fixed

Committed!

Status: Fixed » Closed (fixed)

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