-
Notifications
You must be signed in to change notification settings - Fork 1.1k
bubbles/v2/table bug: any country flag emoji breaks a table layout #1646
Copy link
Copy link
Open
Description
Describe the bug
In charm.land/bubbles/v2/table, the layout breaks when you change a selected row in a table. This only happens when country flag emoji (regional indicator symbols) are used; and, it seems, when the table is inside a lipgloss style with BorderStyle.
Setup
- macOS 26.4
- zsh v5.9
- iTerm2 v3.6.9
- charm.land/bubbles/v2 v2.1.0
- charm.land/bubbletea/v2 v2.0.2
- charm.land/lipgloss/v2 v2.0.2
To Reproduce
- Run the minimal reproducible example from there;
- Press the up/down keys to change the selected row in the table;
- See how the layout breaks (the more you change select rows, the more it will break the layout).
Source Code
https://github.com/hyperion-cs/bubbletea-1646-issue
Expected behavior
The table layout is not expected to break. However, this is actually happening.
Additional context
It is notable that this issue did not affect v1. This also does not happen when AltScreen is enabled for View. For right now, there's a workaround for this issue: add a forced screen clean to the Update(...) func:
...
return m, tea.ClearScreen(or, alternatively, avoid using emojis in table cells)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
