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