mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-22 03:36:37 +02:00
Clean translated combo value when comparing to display value
(closes #3129)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user