mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +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:
@@ -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
|
||||
|
||||
@@ -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