From 7d789421e39ba214721e0510912beeedcab5894d Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Sat, 12 May 2018 16:35:32 +0200 Subject: [PATCH] DropDown now only uses List's main selected callback. Fixes #115 --- dropdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropdown.go b/dropdown.go index da4f227..1430748 100644 --- a/dropdown.go +++ b/dropdown.go @@ -190,7 +190,7 @@ func (d *DropDown) GetFieldWidth() int { // callback is called when this option was selected. It may be nil. func (d *DropDown) AddOption(text string, selected func()) *DropDown { d.options = append(d.options, &dropDownOption{Text: text, Selected: selected}) - d.list.AddItem(text, "", 0, selected) + d.list.AddItem(text, "", 0, nil) return d }