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:
Martin Raifer
2023-08-02 17:54:22 +02:00
parent ad1162dd17
commit 57ca36227b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -50,6 +50,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
* Fix sorting of nearby streets in address field dropdown
* Fix bug where "outlink" buttons would not be disabled on invalid values of `identifier` fields
* Fix zooming/panning in KartaView photo layer after resizing the panel ([#8997])
* Fix clearing of contents of some input field when the respective tag is removed (e.g. when using the trash can icon on the UI field)
#### :earth_asia: Localization
#### :hourglass: Performance
#### :mortar_board: Walkthrough / Help
+1 -1
View File
@@ -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) {