Merge pull request #539 from keepassxreboot/fix/autocomplete_tab

Fix using tab with autocomplete
This commit is contained in:
Sami Vänttinen 2019-05-15 07:23:41 +03:00 committed by GitHub
commit 1c1f7edeca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ kpxcAutocomplete.keyPress = function(e) {
}
} else if (e.key === 'Tab') {
// Return if value is not in the list
if (kpxcAutocomplete.input.value !== '' && kpxcAutocomplete.elements.some(c => c.value !== kpxcAutocomplete.input.value)) {
if (kpxcAutocomplete.input.value !== '' && !kpxcAutocomplete.elements.some(c => c.value === kpxcAutocomplete.input.value)) {
kpxcAutocomplete.closeList();
return;
}