$form.removeOnce is not a function error for D10

Created on 20 November 2023, 7 months ago
Updated 28 February 2024, 4 months ago

hey guys,

After updgrading to D10 we started to notice a lot of issues with this $form.removeOnce is not a function in the Detach commerce_braintree function. This happens when user changed form from Credit Cards to Paypal... if only card is used seems to be all fine and dandy...

Also it seems to be related this https://www.drupal.org/project/commerce_braintree/issues/3361193 ๐Ÿ“Œ Replace jquery.once with core/once Fixed issue but I feel like the patch did not go deep enough

I wrote this patch hopefully it will sort the issue (it sorted issue for us).

Hope this fix works for others too

Cheers!

๐Ÿ› Bug report
Status

Closed: duplicate

Version

1.5

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom Povilas Uogintas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Povilas Uogintas
  • Status changed to Needs review 7 months ago
  • Status changed to RTBC 7 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia keshav.k

    Works perfect. We can merge it. Moving to RTBC.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany rgpublic Dรผsseldorf ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ช๐Ÿ‡บ

    Seems like a duplicate of my issue #3390646. Hope one of those will be comitted soon.

  • Status changed to Closed: duplicate 4 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States nicxvan

    Both of them are missing some pieces too so I'm going to combine them on the other one since it already had a merge request set up. I'll reference this ticket for credit purposes.

    See: https://www.drupal.org/project/commerce_braintree/issues/3390646 ๐Ÿ› Replace jquery.removeOnce with once.remove Needs review for up to date MR. Please review that one and confirm if it works for you.

Production build 0.69.0 2024