mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #554 from keepassxreboot/fix/fill_option_value
Fix filling option value
This commit is contained in:
commit
8fe6eec6c3
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