mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 15:56:56 +02:00
Hide the dropdown arrow in combo fields if there are no suggestions from tagInfo (closes #5730)
This commit is contained in:
@@ -191,6 +191,15 @@ export function uiFieldCombo(field, context) {
|
||||
});
|
||||
}
|
||||
|
||||
if (data.length === 0) {
|
||||
// hide the caret if there are no suggestions
|
||||
container.select('.combobox-caret')
|
||||
.style('display', 'none');
|
||||
} else {
|
||||
container.select('.combobox-caret')
|
||||
.style('display', null);
|
||||
}
|
||||
|
||||
_comboData = _map(data, function(d) {
|
||||
var k = d.value;
|
||||
if (isMulti) k = k.replace(field.key, '');
|
||||
|
||||
Reference in New Issue
Block a user