mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Check visibility of dynamically added fields
This commit is contained in:
parent
1ef4543f95
commit
229f01ff58
1 changed files with 5 additions and 5 deletions
|
|
@ -694,12 +694,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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue