mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-27 22:40:42 +01:00
Prevent empty combo fields from adding a blank tag
This commit is contained in:
@@ -309,7 +309,7 @@ export function uiFieldCombo(field, context) {
|
||||
if (!rawValue && Array.isArray(_tags[field.key])) return;
|
||||
|
||||
val = context.cleanTagValue(tagValue(rawValue));
|
||||
t[field.key] = val;
|
||||
t[field.key] = val || undefined;
|
||||
}
|
||||
|
||||
dispatch.call('change', this, t);
|
||||
|
||||
Reference in New Issue
Block a user