$form.removeOnce is not a function error for D10

Created on 20 November 2023, about 1 year ago
Updated 28 February 2024, 10 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

Production build 0.71.5 2024