mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 11:55:01 +03:00
Fixed invalid selector for data-members-newsletter
attribute (#18039)
no refs Fixed invalid selector for `data-members-newsletter` attribute
This commit is contained in:
parent
d9b36567ca
commit
b472ffb39b
@ -23,7 +23,7 @@ export function formSubmitHandler({event, form, errorEl, siteUrl, submitHandler}
|
||||
labels.push(labelInputs[i].value);
|
||||
}
|
||||
|
||||
let newsletterInputs = event.target.querySelectorAll('input[type=hidden][data-members-newsletter], input[type=checkbox][data-members-newsletter]:checked, input[type=radio][data-members-newsletter]:selected') || [];
|
||||
let newsletterInputs = event.target.querySelectorAll('input[type=hidden][data-members-newsletter], input[type=checkbox][data-members-newsletter]:checked, input[type=radio][data-members-newsletter]:checked') || [];
|
||||
for (let i = 0; i < newsletterInputs.length; ++i) {
|
||||
newsletters.push({id: newsletterInputs[i].value});
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ function getMockData({newsletterQuerySelectorResult = null} = {}) {
|
||||
value: 'Gold'
|
||||
}];
|
||||
}
|
||||
if (elem === 'input[type=hidden][data-members-newsletter], input[type=checkbox][data-members-newsletter]:checked, input[type=radio][data-members-newsletter]:selected' && newsletterQuerySelectorResult) {
|
||||
if (elem === 'input[type=hidden][data-members-newsletter], input[type=checkbox][data-members-newsletter]:checked, input[type=radio][data-members-newsletter]:checked' && newsletterQuerySelectorResult) {
|
||||
return newsletterQuerySelectorResult;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user