Merge pull request #2673 from keepassxreboot/fix/custom_login_fields_with_topmost_elem

Fix Custom Login Fields with topmost element check
This commit is contained in:
Sami Vänttinen 2025-09-03 06:41:12 +03:00 committed by GitHub
commit 0bb0d97d2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -534,7 +534,7 @@ kpxcFields.useCustomLoginFields = async function() {
// Get all input fields from the page without any extra filters
const inputFields = [];
document.body.querySelectorAll('input, select, textarea').forEach(e => {
if (e.type !== 'hidden' && !e.disabled && kpxcFields.isTopElement(e, e?.getBoundingClientRect())) {
if (e.type !== 'hidden' && !e.disabled) {
inputFields.push(e);
}
});