From bf2574f4e379388bee3a97eab928ec88269968b7 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 18 Jan 2019 11:21:31 -0500 Subject: [PATCH] Hide the dropdown arrow in combo fields if there are no suggestions from tagInfo (closes #5730) --- modules/ui/fields/combo.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/ui/fields/combo.js b/modules/ui/fields/combo.js index aaf7d4438..5b7956d29 100644 --- a/modules/ui/fields/combo.js +++ b/modules/ui/fields/combo.js @@ -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, '');