preserve rows with empty tag values in raw tag editor (#10151)

This commit is contained in:
Asif Sheriff
2024-03-15 05:43:07 +05:30
committed by GitHub
parent 6f0e87ea44
commit 1683313621
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -40,6 +40,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
#### :tada: New Features
* Add button to fully load incompletely downloaded relations ([#5420])
#### :sparkles: Usability & Accessibility
* Preserve rows with empty tag values in raw tag editor ([#10145], thanks [@Asif-Sheriff])
#### :scissors: Operations
#### :camera: Street-Level
* Show Mapillary username and deep link to external viewer on Mapillary photos ([#10135], thanks [@Sushil642])
@@ -59,8 +60,10 @@ _Breaking developer changes, which may affect downstream projects or sites that
[#8415]: https://github.com/openstreetmap/iD/issues/8415
[#9439]: https://github.com/openstreetmap/iD/issues/9439
[#10135]: https://github.com/openstreetmap/iD/issues/10135
[#10145]: https://github.com/openstreetmap/iD/issues/10145
[@Sushil642]: https://github.com/Sushil642
[@mattiapezzotti]: https://github.com/mattiapezzotti
[@Asif-Sheriff]: https://github.com/Asif-Sheriff
# 2.28.1
-3
View File
@@ -558,9 +558,6 @@ export function uiSectionRawTagEditor(id, context) {
// exit if this is a multiselection and no value was entered
if (typeof d.value !== 'string' && !this.value) return;
// remove tag if it is now empty
if (!this.value.trim()) return removeTag(d3_event, d);
// exit if we are currently about to delete this row anyway - #6366
if (_pendingChange && _pendingChange.hasOwnProperty(d.key) && _pendingChange[d.key] === undefined) return;