mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Adjust logic to additionally set the hidden-attrib
This commit is contained in:
parent
9b3ec4692a
commit
36522f685c
1 changed files with 8 additions and 4 deletions
|
@ -10,7 +10,8 @@ export function renderFields( cardFields ) {
|
|||
cardFields
|
||||
.NameField( { style: { input: styles } } )
|
||||
.render( nameField.parentNode );
|
||||
hide( nameField, true );
|
||||
hide( nameField, true );
|
||||
nameField.hidden = true;
|
||||
}
|
||||
|
||||
const numberField = document.getElementById(
|
||||
|
@ -21,7 +22,8 @@ export function renderFields( cardFields ) {
|
|||
cardFields
|
||||
.NumberField( { style: { input: styles } } )
|
||||
.render( numberField.parentNode );
|
||||
hide( numberField, true );
|
||||
hide( numberField, true );
|
||||
numberField.hidden = true;
|
||||
}
|
||||
|
||||
const expiryField = document.getElementById(
|
||||
|
@ -32,7 +34,8 @@ export function renderFields( cardFields ) {
|
|||
cardFields
|
||||
.ExpiryField( { style: { input: styles } } )
|
||||
.render( expiryField.parentNode );
|
||||
hide( expiryField, true );
|
||||
hide( expiryField, true );
|
||||
expiryField.hidden = true;
|
||||
}
|
||||
|
||||
const cvvField = document.getElementById(
|
||||
|
@ -43,6 +46,7 @@ export function renderFields( cardFields ) {
|
|||
cardFields
|
||||
.CVVField( { style: { input: styles } } )
|
||||
.render( cvvField.parentNode );
|
||||
hide( cvvField, true );
|
||||
hide( cvvField, true );
|
||||
cvvField.hidden = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue