When showing a field, set its default value if it has one

This allows universal fields or other standalone fields to have a default value.
This didn't work before becuase default values were only handled by
preset.applyTags() / preset.removeTags().
This commit is contained in:
Bryan Housel
2017-09-11 15:16:02 -04:00
parent 494e247ad1
commit 59f1df902d
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export function uiFormFields(context) {
.minItems(1)
.on('accept', function (d) {
var field = d.field;
field.show = true;
field.show();
render(selection);
if (field.type !== 'semiCombo' && field.type !== 'multiCombo') {
field.focus();