mirror of
				https://github.com/Maks1mS/bubbles.git
				synced 2025-11-03 23:21:22 +03:00 
			
		
		
		
	Fix a bug where placeholder text would not reappear post-input
This commit is contained in:
		@@ -361,7 +361,7 @@ func View(model tea.Model) string {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Placeholder text
 | 
			
		||||
	if m.value == nil && m.Placeholder != "" {
 | 
			
		||||
	if len(m.value) == 0 && m.Placeholder != "" {
 | 
			
		||||
		return placeholderView(m)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user