fix: stop table header cells from being selectable (#2719)

mine
Audun Stien 2025-02-16 02:06:25 +01:00 committed by GitHub
parent 1118f84417
commit bd4a8ca1f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -466,6 +466,7 @@ func (t *Table) AddHeaderCell(col int, h model1.HeaderColumn) {
sortCol := h.Name == sc.Name
c := tview.NewTableCell(sortIndicator(sortCol, sc.ASC, t.styles.Table(), h.Name))
c.SetExpansion(1)
c.SetSelectable(false)
c.SetAlign(h.Align)
t.SetCell(0, col, c)
}