Hide the dropdown arrow in combo fields if there are no suggestions from tagInfo (closes #5730)

This commit is contained in:
Quincy Morgan
2019-01-18 11:21:31 -05:00
parent 4f650ad2f9
commit bf2574f4e3
+9
View File
@@ -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, '');