show tag reference info for the currently filled-in tag value, closes #9786

This commit is contained in:
Martin Raifer
2023-07-21 11:03:28 +02:00
parent 61af54c069
commit 46a2d6365f
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -39,6 +39,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
#### :tada: New Features
#### :sparkles: Usability & Accessibility
* Show tag reference information for the currently filled-in tag value in UI fields (if available), instead of only showing the more generic _key_ documentation of the field ([#9786])
#### :scissors: Operations
#### :camera: Street-Level
#### :white_check_mark: Validation
@@ -53,6 +54,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
#### :hammer: Development
[#8997]: https://github.com/openstreetmap/iD/issues/8997
[#9786]: https://github.com/openstreetmap/iD/issues/9786
# 2.26.2
+5 -1
View File
@@ -204,7 +204,11 @@ export function uiField(context, presetField, entityIDs, options) {
referenceKey = referenceKey.replace(/:$/, '');
}
reference = uiTagReference(d.reference || { key: referenceKey }, context);
var referenceOptions = d.reference || {
key: referenceKey,
value: _tags[referenceKey]
};
reference = uiTagReference(referenceOptions, context);
if (_state === 'hover') {
reference.showing(false);
}