mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix appendChild usage
We replaced append with appendChild for better browser support, but it accepts only single elements, so we need to flatten the array.
This commit is contained in:
parent
783377cddd
commit
a2668e37d2
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ document.addEventListener(
|
|||
}
|
||||
return option;
|
||||
}
|
||||
);
|
||||
).flat();
|
||||
|
||||
target.innerHTML = '';
|
||||
selectedValidOptions.forEach(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue