You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IsItemEdited on a group doesn't work for edited Checkbox and Selectable widgets inside that group #9028
After editing a Checkbox() or Selectable() inside a BeginGroup() and EndGroup() pair IsItemEdited() does not return true after EndGroup(). Other widgets inside a group like SliderInt() do cause IsItemEdited() to return true after EndGroup().
This can be worked around easily by using the return values of Checkbox() and Selectable(). I figured I'd open an issue though to hopefully save anyone else hitting the same thing some time.
staticbool checkbox_value = false;
staticbool selectable_value = false;
staticbool group_edited = false;
ImGui::Begin("Window");
ImGui::BeginGroup();
ImGui::Checkbox("Checkbox", &checkbox_value);
ImGui::Selectable("Selectable", &selectable_value);
ImGui::EndGroup();
group_edited |= ImGui::IsItemEdited();
if (group_edited)
ImGui::Text("Group has been edited."); // This branch will never be entered.elseImGui::Text("Group has not been edited.");
ImGui::End();
Activity
TestSuite: added "layout_group_status_query".
Groups: fixed an issue reporting IsItemEdited() signal after EndGroup…
ocornut commentedon Oct 23, 2025
Thank you for your report!
Pushed fix b8573a7 + regression test ocornut/imgui_test_engine@aa44b0e
Groups: fixed an issue reporting IsItemEdited() signal after EndGroup…