Fix preset input error

This commit is contained in:
John Firebaugh
2013-03-26 12:21:20 -07:00
parent 105b32eda3
commit 9c2257ce4c

View File

@@ -139,6 +139,9 @@ iD.ui.preset = function(context, entity, preset) {
.attr('class', 'tag-help');
selection
.each(function(field) {
field.input.tags(tags);
})
.classed('modified', function(field) {
return field.modified();
});
@@ -213,15 +216,7 @@ iD.ui.preset = function(context, entity, preset) {
presets.change = function(_) {
tags = _;
fields.forEach(function(field) {
if (field.shown()) {
field.input.tags(_);
}
});
render();
return presets;
};