mirror of
				https://github.com/Maks1mS/bubbles.git
				synced 2025-11-03 23:21:22 +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:
		@@ -340,6 +340,7 @@ func (m *Model) InsertItem(index int, item Item) tea.Cmd {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	m.updatePagination()
 | 
						m.updatePagination()
 | 
				
			||||||
 | 
						m.updateKeybindings()
 | 
				
			||||||
	return cmd
 | 
						return cmd
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user