diff --git a/src/raygui.h b/src/raygui.h index 0a961e0..924f307 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1659,6 +1659,7 @@ RAYGUIDEF int GuiDropdownBox(Rectangle bounds, const char **text, int count, int { if (CheckCollisionPointRec(mousePoint, (Rectangle){ bounds.x, bounds.y + i*bounds.height, bounds.width, bounds.height })) active = i - 1; } + dropOpen = false; } } //--------------------------------------------------------------------