mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-01 04:31:36 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user