aboutsummaryrefslogtreecommitdiff
path: root/vendor/maunium.net/go/tview/dropdown.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/maunium.net/go/tview/dropdown.go')
-rw-r--r--vendor/maunium.net/go/tview/dropdown.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/maunium.net/go/tview/dropdown.go b/vendor/maunium.net/go/tview/dropdown.go
index 515f978..4e4d888 100644
--- a/vendor/maunium.net/go/tview/dropdown.go
+++ b/vendor/maunium.net/go/tview/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
}