Merge pull request #1376 from keepassxreboot/fix/shadowselector_function

Fix shadowSelectorAll check
This commit is contained in:
Sami Vänttinen 2021-07-16 23:50:34 +03:00 committed by GitHub
commit 12c926bfc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);