hide carret when options exhausted also for comboboxes w/ static values

This commit is contained in:
Martin Raifer
2025-02-25 18:30:49 +01:00
parent ab007dbbb8
commit 813f9ef8cd

View File

@@ -210,6 +210,10 @@ export function uiFieldCombo(field, context) {
_comboData = objectDifference(_comboData, _multiData);
_combobox.data(_comboData);
// hide the caret if there are no suggestions
_container.classed('empty-combobox', _comboData.length === 0);
if (callback) callback(_comboData);
}