With the comboboxitem, we're seeing that the selection isn't highlighted when you reopen the drop down for all of our comboxes. So for example, you make your selection and click away. Then you cilck on the combobox again, and though the selection appears at the top, the dropdown below starts at the top of the dropdown instead of where the selection is.
We're using setvaluemap and messing with the label. Is there some reason why comboboxitem wouldn't highlight the selection?
where attrMap is done like this:
We're using setvaluemap and messing with the label. Is there some reason why comboboxitem wouldn't highlight the selection?
Code:
new ComboBoxItem("groupBy", "Group by"){{ setTextMatchStyle(TextMatchStyle.SUBSTRING); setAddUnknownValues(false); LinkedHashMap<String, String> groupByMap = new LinkedHashMap<String, String>(); setValueMap(attrMap); }}
Code:
attrMap = new LinkedHashMap<String, String>(); for (Record attr : getAttrs()){ String name = attr.getAttribute("name"); String label = attr.getAttribute("label"); String processedLabel = !StringUtil.isEmpty(label) ? label + " (" + name + ")" : name; attrMap.put(name, processedLabel); }
Comment