mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
Fix "Add Field" combo
This commit is contained in:
@@ -151,6 +151,11 @@ export function uiField(context, dispatch, presetField, entity, show) {
|
||||
};
|
||||
|
||||
|
||||
field.focus = function() {
|
||||
field.impl.focus();
|
||||
};
|
||||
|
||||
|
||||
return field;
|
||||
}
|
||||
|
||||
|
||||
@@ -161,18 +161,14 @@ export function uiPresetEditor(context) {
|
||||
.container(context.container())
|
||||
.data(notShown)
|
||||
.minItems(1)
|
||||
.on('accept', show)
|
||||
.on('accept', function (d) {
|
||||
var field = d.field;
|
||||
field.show = true;
|
||||
render(selection);
|
||||
field.focus();
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
function show(field) {
|
||||
//FIXME
|
||||
// field = field.field;
|
||||
// field.show = true;
|
||||
// render(selection);
|
||||
// field.input.focus();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user