charmbracelet / bubbles

TUI components for Bubble Tea 🫧
MIT License
5.49k stars 264 forks source link

Textarea bubble hanging on initial View() call #193

Open robinovitch61 opened 2 years ago

robinovitch61 commented 2 years ago

Hey folks, noticed a potential bug in the textarea bubble. I put up an app reproducing it here: https://github.com/robinovitch61/textarea_bug/blob/main/textarea/textarea.go#L856

muesli commented 2 years ago

Thanks for the ticket, @robinovitch61. I have a suspicion what might be causing this and we have a fix coming up in the next tea and lipgloss releases.

greenm01 commented 2 years ago

Any traction on this bug? I notice that Textarea also hangs when switching from one bubble to the next, and I get a bunch of garbage text in the window. e.g. transitioning from textinput to textarea.

muesli commented 2 years ago

Any traction on this bug? I notice that Textarea also hangs when switching from one bubble to the next, and I get a bunch of garbage text in the window. e.g. transitioning from textinput to textarea.

If you bump your bubbletea to master, this should already be fixed. The issue you describe sounds unrelated however.