From b01af22fd1cc27669eb472f314b83552efcf8d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20V=C3=A4nttinen?= Date: Sun, 1 Mar 2026 13:59:23 +0200 Subject: [PATCH] Fix detecting new password input in form (#2878) --- keepassxc-browser/content/fields.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keepassxc-browser/content/fields.js b/keepassxc-browser/content/fields.js index 4422a49..e289215 100644 --- a/keepassxc-browser/content/fields.js +++ b/keepassxc-browser/content/fields.js @@ -104,8 +104,9 @@ kpxcFields.getExistingCombination = function(combination) { existingCombination.password ??= combination.password; if (existingCombination.passwordInputs?.length === 0) { existingCombination.passwordInputs = combination.passwordInputs; - } else { - existingCombination.passwordInputs.push(combination.password); + } else if (combination?.password) { + // If password field is found in the current combination, force assign it to the existing combination + existingCombination.password = combination.password; } // Remove username field from combination with certain sites (replaced by password input)