For multicombo fields tag reference, lookup key w/o the trailing ':'

This commit is contained in:
Bryan Housel
2017-05-21 21:49:02 -04:00
parent f5e4b03e14
commit 49852bc6d6
+5 -1
View File
@@ -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);