Fix filling option value

This commit is contained in:
varjolintu 2019-05-27 10:16:24 +03:00
parent 26b4ee56df
commit 01a0eaacbd

View file

@ -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;
}