mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix filling option value
This commit is contained in:
parent
26b4ee56df
commit
01a0eaacbd
1 changed files with 1 additions and 1 deletions
|
|
@ -1145,7 +1145,7 @@ kpxc.setValue = function(field, value) {
|
|||
value = value.toLowerCase().trim();
|
||||
const options = field.querySelectorAll('option');
|
||||
for (const o of options) {
|
||||
if (o.test().toLowerCase().trim() === value) {
|
||||
if (o.textContent.toLowerCase().trim() === value) {
|
||||
kpxc.setValueWithChange(field, o.value);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue