mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Refactor style settings selectors determination for hiding
This commit is contained in:
parent
3131dab353
commit
f338ef57df
1 changed files with 2 additions and 5 deletions
|
@ -317,6 +317,7 @@ document.addEventListener(
|
||||||
'#field-button' + locationPrefix + '_label',
|
'#field-button' + locationPrefix + '_label',
|
||||||
'#field-button' + locationPrefix + '_color',
|
'#field-button' + locationPrefix + '_color',
|
||||||
'#field-button' + locationPrefix + '_shape',
|
'#field-button' + locationPrefix + '_shape',
|
||||||
|
'#field-button' + locationPrefix + '_height',
|
||||||
'#field-button' + locationPrefix + '_preview',
|
'#field-button' + locationPrefix + '_preview',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -324,11 +325,7 @@ document.addEventListener(
|
||||||
inputSelectors.push('#field-button_' + location + '_heading');
|
inputSelectors.push('#field-button_' + location + '_heading');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location === 'mini-cart') {
|
return inputSelectors.filter(selector => document.querySelector(selector));
|
||||||
inputSelectors.push('#field-button' + locationPrefix + '_height');
|
|
||||||
}
|
|
||||||
|
|
||||||
return inputSelectors
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const allPayLaterMessaginginputSelectors = () => {
|
const allPayLaterMessaginginputSelectors = () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue