diff options
author | Sami Vänttinen <sami.vanttinen@protonmail.com> | 2020-06-08 16:19:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 16:19:40 +0300 |
commit | 76a3e58203855f0553326d11f824b6fbb4d0512d (patch) | |
tree | 249b05b45e3d7f2d987c75de407fd8d3e9a2c941 /keepassxc-browser | |
parent | 6c9c37d08e6ed9f4da9256281e8b8301e85b6423 (diff) | |
parent | 229f01ff5814203585c6738e528bc7376c778644 (diff) |
Merge pull request #906 from keepassxreboot/fix/check_isvisible_for_dynamic_fields
Check visibility of dynamically added fields
Diffstat (limited to 'keepassxc-browser')
-rwxr-xr-x | keepassxc-browser/content/keepassxc-browser.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keepassxc-browser/content/keepassxc-browser.js b/keepassxc-browser/content/keepassxc-browser.js index 98a73d9..f9b7513 100755 --- a/keepassxc-browser/content/keepassxc-browser.js +++ b/keepassxc-browser/content/keepassxc-browser.js @@ -711,12 +711,12 @@ kpxcObserverHelper.getInputs = function(target) { // Only include input fields that match with kpxcObserverHelper.inputTypes const inputs = []; - for (const i of inputFields) { - const type = i.getLowerCaseAttribute('type'); + for (const field of inputFields) { + const type = field.getLowerCaseAttribute('type'); - if (kpxcObserverHelper.inputTypes.includes(type)) { - kpxcFields.setUniqueId(i); - inputs.push(i); + if (kpxcObserverHelper.inputTypes.includes(type) && kpxcFields.isVisible(field)) { + kpxcFields.setUniqueId(field); + inputs.push(field); } } return inputs; |