mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
For multicombo fields tag reference, lookup key w/o the trailing ':'
This commit is contained in:
@@ -188,7 +188,11 @@ export function uiPreset(context) {
|
||||
.classed('modified', function(field) { return field.modified(); })
|
||||
.classed('present', function(field) { return field.present(); })
|
||||
.each(function(field) {
|
||||
var reference = uiTagReference(field.reference || { key: field.key }, context);
|
||||
var referenceKey = field.key;
|
||||
if (field.type === 'multiCombo') { // lookup key without the trailing ':'
|
||||
referenceKey = referenceKey.replace(/:$/, '');
|
||||
}
|
||||
var reference = uiTagReference(field.reference || { key: referenceKey }, context);
|
||||
|
||||
if (state === 'hover') {
|
||||
reference.showing(false);
|
||||
|
||||
Reference in New Issue
Block a user