Fix "Add Field" combo

This commit is contained in:
Bryan Housel
2017-08-03 10:28:07 -04:00
parent 1bf514b7fc
commit 2e278ba5ef
2 changed files with 11 additions and 10 deletions

View File

@@ -151,6 +151,11 @@ export function uiField(context, dispatch, presetField, entity, show) {
};
field.focus = function() {
field.impl.focus();
};
return field;
}

View File

@@ -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();
}
}