diff --git a/Widgets.go b/Widgets.go index 4631f4b5..81fe4055 100644 --- a/Widgets.go +++ b/Widgets.go @@ -205,7 +205,8 @@ func (c *ComboWidget) Build() { if imgui.BeginComboV(Context.FontAtlas.RegisterString(c.label), c.previewValue, imgui.ComboFlags(c.flags)) { for i, item := range c.items { - if imgui.SelectableBool(item) { + i := i + if imgui.SelectableBool(fmt.Sprintf("%s##%d", item, i)) { *c.selected = int32(i) if c.onChange != nil { c.onChange()