mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Make optional multiCombo fields appear if a value exists (closes #5764)
This commit is contained in:
@@ -69,6 +69,14 @@ export function uiField(context, presetField, entity, options) {
|
||||
|
||||
function isPresent() {
|
||||
return _some(field.keys, function(key) {
|
||||
if (field.type === 'multiCombo') {
|
||||
for (var tagKey in _tags) {
|
||||
if (tagKey.indexOf(key) === 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return _tags[key] !== undefined;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user