textarea broken(ish) between 0.26.2 and 0.26.3
Describe the bug When used in a sequence of inputs, the textarea control receives a number of KeyMsg and other messages which have two noticeable effects:
- Weird control character sequences appear as the control's input, and
- There is often a 5 to 30 second delay in the rendering of the control.
Note: the textarea sample application ("tell me a story") does not appear to show the same behavior.
Setup Please complete the following information along with version numbers, if applicable.
- OS: macOS
- Shell: zsh
- Terminal Emulator: macOS Terminal application
To Reproduce Steps to reproduce the behavior:
- Clone wizard-tutorial
- Update the
bubbleteaversion to0.26.2andgo mod tidyto get new dependencies go run *.goand enter values for each input andctrl+cto exit at the end- Update the
bubbleteaversion to0.26.3andgo mod tidyto get new dependencies go run *.goand enter values for first twotextinputfields- When the
textarearenders, see the "random" characters
Source Code wizard-tutorial
This project does not exhibit the same behavior textarea
Expected behavior
The textarea control should render quickly and without the extra/random characters already populating the field.
Screenshots
Expected behavior (0.26.2) -
Current behavior (0.26.3) -
Additional context
Hey I've experienced huge lag spikes with text areas but only using the stock MacOS terminal emulator.
I'm still experimenting right now but it seems the culprit is Lipgloss, I've tried with an unstyled text area and had no lag.
ta := textarea.New()
ta.Placeholder = "Type something..."