Merge pull request #906 from keepassxreboot/fix/check_isvisible_for_dynamic_fields

Check visibility of dynamically added fields
This commit is contained in:
Sami Vänttinen 2020-06-08 16:19:40 +03:00 committed by GitHub
commit 76a3e58203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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