Fix shadowSelectorAll check

This commit is contained in:
varjolintu 2021-07-16 21:28:10 +03:00
parent ef45c45838
commit 3c1519f649

View file

@ -1834,7 +1834,7 @@ kpxcObserverHelper.getInputs = function(target, ignoreVisibility = false) {
}
// Append any input fields in Shadow DOM
if (target.shadowRoot) {
if (target.shadowRoot && typeof target.shadowSelectorAll === 'function') {
target.shadowSelectorAll('input').forEach(e => {
if (e.type !== 'hidden' && !e.disabled && !kpxcObserverHelper.alreadyIdentified(e)) {
inputFields.push(e);