From 0cea4e9d27c3bc874f0d36850ad62cee819579df Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 23 May 2016 18:23:42 -0400 Subject: [PATCH] Clean translated combo value when comparing to display value (closes #3129) --- js/id/ui/preset/combo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/id/ui/preset/combo.js b/js/id/ui/preset/combo.js index f628c34ae..cafd3e70b 100644 --- a/js/id/ui/preset/combo.js +++ b/js/id/ui/preset/combo.js @@ -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; }