mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
For multiselect fields, field.key should have a ':' on the end of it - we use as the prefix, not the real key field.keys should contain the array of real keys being modified see https://github.com/openstreetmap/iD/blob/master/js/id/ui/preset.js#L17-L45 The address field preset works like this also.. It contains an array of key.fields for all the subfields that might be set. For multiselect fields, we don't know ahead of time what all the subfields are, so we append to the list in `change()` and rebuild list in `tags()`