Clean translated combo value when comparing to display value

(closes #3129)
This commit is contained in:
Bryan Housel
2016-05-23 18:23:42 -04:00
parent dafebefa80
commit 0cea4e9d27
+3 -1
View File
@@ -40,7 +40,9 @@ iD.ui.preset.multiCombo = function(field, context) {
dval = clean(dval || '');
if (optstrings) {
var match = _.find(comboData, function(o) { return o.value === dval && o.key; });
var match = _.find(comboData, function(o) {
return o.key && clean(o.value) === dval;
});
if (match) {
return match.key;
}