mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Move isSearchField() to a better location
This commit is contained in:
parent
376510c3f8
commit
577dadfd18
1 changed files with 3 additions and 2 deletions
|
|
@ -378,7 +378,7 @@ kpxcFields.getAllPageInputs = async function(previousInputs = []) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (kpxcFields.isVisible(input) && !kpxcFields.isSearchField(input) && kpxcFields.isAutocompleteAppropriate(input)) {
|
||||
if (kpxcFields.isVisible(input) && kpxcFields.isAutocompleteAppropriate(input)) {
|
||||
fields.push(input);
|
||||
}
|
||||
}
|
||||
|
|
@ -1527,7 +1527,8 @@ kpxcObserverHelper.getInputs = function(target, ignoreVisibility = false) {
|
|||
// Only include input fields that match with kpxcObserverHelper.inputTypes
|
||||
const inputs = [];
|
||||
for (const field of inputFields) {
|
||||
if (!ignoreVisibility && !kpxcFields.isVisible(field)) {
|
||||
if ((!ignoreVisibility && !kpxcFields.isVisible(field))
|
||||
|| kpxcFields.isSearchField(field)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue