charmbracelet / charmbracelet/bubbletea

FilterInput gets printed twice from time to time

Open
#580 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I'm using list from bubbles in https://github.com/demostanis/metatorrent.
Its height is set manually with SetSize() to be equal to the height of the terminal minus the height of the other elements surrounding the list.
Everything works fine, but when pressing `/` to filter the elements in the list, the FitlerInput might appear twice, usually after using it a bit (writing something, then pressing backspaces multiple times, or ^U). The elements above the list get affected by this, and get moved up enough that a part of them is hidden.
I have no idea what this is caused by.
![image](https://user-images.githubusercontent.com/40673815/198082030-9817ae6d-6b61-4657-a6be-f13c3909e026.png)
When pressing escape to remove the filter, it is impossible to remove the duplicated one.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.