mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Update the tags before rendering
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user