From 65fb55de1f40b0cac81102773757a9c84e11ee3a Mon Sep 17 00:00:00 2001 From: varjolintu Date: Tue, 23 Apr 2019 13:10:44 +0300 Subject: [PATCH] Fix autocomplete password fill --- keepassxc-browser/content/autocomplete.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keepassxc-browser/content/autocomplete.js b/keepassxc-browser/content/autocomplete.js index ac1a762..201f81c 100644 --- a/keepassxc-browser/content/autocomplete.js +++ b/keepassxc-browser/content/autocomplete.js @@ -169,7 +169,8 @@ kpxcAutocomplete.create = function(input, showListInstantly = false, autoSubmit function fillPassword(value, index) { const fieldId = input.getAttribute('data-kpxc-id'); kpxcFields.prepareId(fieldId); - const combination = kpxcFields.getCombination('username', fieldId); + const givenType = input.type === 'password' ? 'password' : 'username'; + const combination = kpxcFields.getCombination(givenType, fieldId); combination.loginId = index; kpxc.fillInCredentials(combination, false, false);