mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Assign CSS properties correctly to chrome
This commit is contained in:
parent
b13476de38
commit
a00f6e3ae8
1 changed files with 4 additions and 1 deletions
|
@ -3,7 +3,10 @@ const dccInputFactory = (original) => {
|
|||
const newElement = document.createElement('span');
|
||||
newElement.setAttribute('id', original.id);
|
||||
Object.values(styles).forEach( (prop) => {
|
||||
newElement.style[prop] = '' + styles[prop];
|
||||
if (! styles[prop] || ! isNaN(prop) ) {
|
||||
return;
|
||||
}
|
||||
newElement.style.setProperty(prop,'' + styles[prop]);
|
||||
});
|
||||
return newElement;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue