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.
Screenshots

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)
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 alipglossstyle withBorderStyle.Setup
To Reproduce
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.
Screenshots

Additional context
It is notable that this issue did not affect v1. This also does not happen when
AltScreenis enabled for View. For right now, there's a workaround for this issue: add a forced screen clean to theUpdate(...)func:(or, alternatively, avoid using emojis in table cells)