emilk / emilk/egui

Toggling a CollapsingHeader in a ComboBox closes the whole ComboBox

Open
#335 10 comments 5 reactions 0 assignees View on GitHub
design
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 12h
Merged PRs (30d)
67

Description

**Describe the bug**
Putting a CollapsingHeader inside a ComboBox closes the ComboBox whenever you try to toggle the CollapsingHeader

**To Reproduce**
Steps to reproduce the behavior:
1. Create a ComboBox
2. Put a CollapsingHeader inside
3. Toggle the CollapsingHeader

```rust
egui::ComboBox::from_label("Version")
.width(150.0)
.selected_text(selected_version)
.show_ui(ui, |ui| {
egui::CollapsingHeader::new("Dev")
.default_open(true)
.show(ui, |ui| {
for version in versions.iter() {
ui.selectable_value(&mut selected_version, &version, *version);
}
});
});
````

**Expected behavior**
The CollapsingHeader should be able to open/close without the ComboBox closing

**Screenshots**

**System**
OS: Windows10 20H2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.