mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +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 + '_color',
|
||||
'#field-button' + locationPrefix + '_shape',
|
||||
'#field-button' + locationPrefix + '_height',
|
||||
'#field-button' + locationPrefix + '_preview',
|
||||
]
|
||||
|
||||
|
@ -324,11 +325,7 @@ document.addEventListener(
|
|||
inputSelectors.push('#field-button_' + location + '_heading');
|
||||
}
|
||||
|
||||
if (location === 'mini-cart') {
|
||||
inputSelectors.push('#field-button' + locationPrefix + '_height');
|
||||
}
|
||||
|
||||
return inputSelectors
|
||||
return inputSelectors.filter(selector => document.querySelector(selector));
|
||||
}
|
||||
|
||||
const allPayLaterMessaginginputSelectors = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue