DropDown menu don't display list
Bulldog83 opened this issue ยท 4 comments
Hello.
I've tried to make DropDown menu. But it shows "No suggestions" instead of list with variants.
My code:
mapAppearance.addEntry(entryBuilder.startDropdownMenu(lang("current_skin"), MapSkin.getCurrentSkin(), MapSkin::getSkinByName, MapSkin::getName)
.setDefaultValue(MapSkin.getSkin((int) JustMap.CONFIG.getDefault("current_skin")))
.setSelections(MapSkin.getSkins())
.build());
MapSkin.getSkins() returns not empty List, I've checked.
And menu in your config shows only one element, but in the Enum in ClothConfig are several of them.
oh that list is basically a suggestion of the "search" you typed currently, to display all, you must clear the text field.