mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-10 08:26:55 +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;
|
return option;
|
||||||
}
|
}
|
||||||
);
|
).flat();
|
||||||
|
|
||||||
target.innerHTML = '';
|
target.innerHTML = '';
|
||||||
selectedValidOptions.forEach(
|
selectedValidOptions.forEach(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue