From 45366684829674ef9a749430631d3802c0f58c65 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 9 Jun 2015 10:09:12 -0600 Subject: [PATCH] Fixed issue with activating a Combo() not taking active id (#241) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 9b0cfddf..a7a8ac2e 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -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);