From 813f9ef8cda33b1072046a5aaca97f819e202cf4 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Tue, 25 Feb 2025 18:30:49 +0100 Subject: [PATCH] hide carret when options exhausted also for comboboxes w/ static values --- modules/ui/fields/combo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ui/fields/combo.js b/modules/ui/fields/combo.js index 346d063eb..744a1249e 100644 --- a/modules/ui/fields/combo.js +++ b/modules/ui/fields/combo.js @@ -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); }