REVIEWED: GuiDropdownBox() locking mechanism #139

This commit is contained in:
raysan5
2021-10-05 11:23:58 +02:00
parent 734d067335
commit 2bb3e17c1e
2 changed files with 7 additions and 8 deletions

View File

@ -1895,7 +1895,7 @@ bool GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMo
// Update control
//--------------------------------------------------------------------
if ((state != GUI_STATE_DISABLED) && !guiLocked && (itemCount > 1))
if ((state != GUI_STATE_DISABLED) && (editMode || !guiLocked) && (itemCount > 1))
{
Vector2 mousePoint = GetMousePosition();