charmbracelet / charmbracelet/bubbles
textarea broken(ish) between 0.26.2 and 0.26.3
- Dominant language
- Go
- Stars
- 8.9k
- Forks
- 457
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 5
Description
**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:
1. Weird control character sequences appear as the control's input, and
2. 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:
1. Clone [wizard-tutorial](https://github.com/charmbracelet/wizard-tutorial)
2. Update the `bubbletea` version to `0.26.2` and `go mod tidy` to get new dependencies
3. `go run *.go` and enter values for each input and `ctrl+c` to exit at the end
4. Update the `bubbletea` version to `0.26.3` and `go mod tidy` to get new dependencies
5. `go run *.go` and enter values for first two `textinput` fields
6. When the `textarea` renders, see the "random" characters
**Source Code**
[wizard-tutorial](https://github.com/charmbracelet/wizard-tutorial)
This project does not exhibit the same behavior [textarea](https://github.com/charmbracelet/bubbletea/tree/master/examples/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**
- There is a significant pause between the second and third inputs.
- I've posted my explorations and red herrings on the Charm Discord account [here](https://discord.com/channels/1032368467246075914/1032368467988451425/1252993848465031168) and [here](https://discord.com/channels/1032368467246075914/1032368467988451425/1253154062195494984).
Contributor guide
Assessment
This issue has not been assessed yet.