mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-10 06:11:22 +03:00
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:
committed by
Christian Rocha
parent
eef9098f37
commit
5f256bf34f
@@ -297,6 +297,7 @@ func (m *Model) SetItems(i []Item) tea.Cmd {
|
||||
}
|
||||
|
||||
m.updatePagination()
|
||||
m.updateKeybindings()
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user