fix: stop table header cells from being selectable (#2719)
parent
1118f84417
commit
bd4a8ca1f6
|
|
@ -466,6 +466,7 @@ func (t *Table) AddHeaderCell(col int, h model1.HeaderColumn) {
|
||||||
sortCol := h.Name == sc.Name
|
sortCol := h.Name == sc.Name
|
||||||
c := tview.NewTableCell(sortIndicator(sortCol, sc.ASC, t.styles.Table(), h.Name))
|
c := tview.NewTableCell(sortIndicator(sortCol, sc.ASC, t.styles.Table(), h.Name))
|
||||||
c.SetExpansion(1)
|
c.SetExpansion(1)
|
||||||
|
c.SetSelectable(false)
|
||||||
c.SetAlign(h.Align)
|
c.SetAlign(h.Align)
|
||||||
t.SetCell(0, col, c)
|
t.SetCell(0, col, c)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue