check if option is listoption before checking if it's the active dropdown option
This commit is contained in:
parent
65f95696eb
commit
1a9e6ab0da
|
@ -418,7 +418,8 @@ public class OptionsOverlay extends OverlayOpsuState {
|
|||
if (!option.showCondition() || option.isFiltered()) {
|
||||
continue;
|
||||
}
|
||||
if (y > -optionHeight || (openDropdownMenu != null && openDropdownMenu.equals(dropdownMenus.get(option)))) {
|
||||
if (y > -optionHeight || (option instanceof ListOption && openDropdownMenu != null
|
||||
&& openDropdownMenu.equals(dropdownMenus.get(option)))) {
|
||||
renderOption(g, option, y);
|
||||
}
|
||||
y += optionHeight;
|
||||
|
|
Loading…
Reference in New Issue
Block a user