mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Exclude existing keys from auto-completion in raw tag editor
(closes #3625)
This commit is contained in:
@@ -227,7 +227,12 @@ export function uiRawTagEditor(context) {
|
||||
geometry: geometry,
|
||||
query: value
|
||||
}, function(err, data) {
|
||||
if (!err) callback(sort(value, data));
|
||||
if (!err) {
|
||||
var filtered = data.filter(function(d) {
|
||||
return _tags[d.value] === undefined;
|
||||
});
|
||||
callback(sort(value, filtered));
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user