mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 22:32:59 +03:00
Update keybindings after calling InsertItem on the list model
Specifically, if the list was emtpy prior to inserting an item the up/down keybindings would be hidden and disabled.
This commit is contained in:
parent
5f256bf34f
commit
48e3f85baf
@ -340,6 +340,7 @@ func (m *Model) InsertItem(index int, item Item) tea.Cmd {
|
||||
}
|
||||
|
||||
m.updatePagination()
|
||||
m.updateKeybindings()
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user