mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 09:34:04 +02:00
fix clearing of contents of some input field when the tag is removed
e.g. when using the trash can icon on the UI field
This commit is contained in:
@@ -472,7 +472,7 @@ export function uiFieldText(field, context) {
|
||||
|
||||
const vals = getVals(tags);
|
||||
const isMixed = vals.size > 1;
|
||||
var val = vals.size === 1 ? [...vals][0] : '';
|
||||
var val = vals.size === 1 ? [...vals][0] ?? '' : '';
|
||||
var shouldUpdate;
|
||||
|
||||
if (field.type === 'number' && val) {
|
||||
|
||||
Reference in New Issue
Block a user