mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-09 04:50:11 +00:00
Fixed issue with activating a Combo() not taking active id (#241)
This commit is contained in:
parent
20088303e9
commit
4536668482
1 changed files with 1 additions and 0 deletions
|
|
@ -7341,6 +7341,7 @@ bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(voi
|
|||
if (g.IO.MouseClicked[0])
|
||||
{
|
||||
menu_toggled = true;
|
||||
SetActiveId(0);
|
||||
g.ActiveComboID = (g.ActiveComboID == id) ? 0 : id;
|
||||
if (g.ActiveComboID)
|
||||
FocusWindow(window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue