Update the tags before rendering

This commit is contained in:
Bryan Housel
2017-08-03 12:11:17 -04:00
parent 7076bcef16
commit 6950220ced
2 changed files with 5 additions and 5 deletions

View File

@@ -144,7 +144,6 @@ export function uiField(context, presetField, entity, show) {
field.tags = function(_) {
if (!arguments.length) return tags;
tags = _;
// field.impl.tags(tags);
return field;
};

View File

@@ -61,20 +61,23 @@ export function uiPresetEditor(context) {
presets.universal().forEach(function(field) {
if (preset.fields.indexOf(field) === -1) {
fieldsArr.push(
uiField(context, field, entity)
uiField(context, field, entity, false)
);
}
});
fieldsArr.forEach(function(field) {
field
.tags(tags)
.on('change', function(t, onInput) {
dispatch.call('change', field, t, onInput);
});
});
}
fieldsArr.forEach(function(field) {
field.tags(tags);
});
var shown = fieldsArr.filter(function(field) { return field.isShown(); }),
notShown = fieldsArr.filter(function(field) { return !field.isShown(); });
@@ -115,8 +118,6 @@ export function uiPresetEditor(context) {
context.enter(modeBrowse(context));
}
});
// d.tags(tags);
});