mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Remove aria-hidden check (#365)
This commit is contained in:
parent
0070bebf3d
commit
36b33af6b4
1 changed files with 0 additions and 16 deletions
|
|
@ -844,17 +844,6 @@ cipFields.traverseParents = function(element, predicate, resultFn = () => true,
|
|||
return defaultValFn();
|
||||
};
|
||||
|
||||
cipFields.getAriaHidden = function(field) {
|
||||
// Check the main element
|
||||
const val = field.getAttribute('aria-hidden');
|
||||
if (val) {
|
||||
return val;
|
||||
}
|
||||
|
||||
const ariaFunc = f => f.getAttribute('aria-hidden');
|
||||
return cipFields.traverseParents(field, ariaFunc, ariaFunc, () => 'false');
|
||||
};
|
||||
|
||||
cipFields.getOverflowHidden = function(field) {
|
||||
return cipFields.traverseParents(field, f => f.style.overflow === 'hidden');
|
||||
};
|
||||
|
|
@ -915,11 +904,6 @@ cipFields.isVisible = function(field) {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Check aria-hidden property
|
||||
if (cipFields.getAriaHidden(field) !== 'false') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue