Fix Custom Login Fields with topmost element check

This commit is contained in:
varjolintu 2025-09-02 22:27:53 +03:00
parent 345b5e0bc9
commit 99b5e31278

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);
}
});