fix(list): update keybindings when setting items

Bug: when calling SetItems when items was previously empty, the keybindings for
up/down do not appear.

Fix: call updateKeybindings in SetItems.

Signed-off-by: Christian Stewart <christian@paral.in>
This commit is contained in:
Christian Stewart 2022-01-03 14:00:59 -08:00 committed by Christian Rocha
parent eef9098f37
commit 5f256bf34f

View File

@ -297,6 +297,7 @@ func (m *Model) SetItems(i []Item) tea.Cmd {
}
m.updatePagination()
m.updateKeybindings()
return cmd
}