mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-01-12 06:51:05 +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.updatePagination()
|
||||||
|
m.updateKeybindings()
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user