From 12222d41ab2cf607a53f7adff5464983532c9340 Mon Sep 17 00:00:00 2001 From: Mikalai Turankou Date: Wed, 25 Mar 2026 14:48:00 +0300 Subject: [PATCH] Fixed incorrect setting of "current" property of TableView when user selects row/column --- tableView.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tableView.go b/tableView.go index 77c9cbf..fa158d4 100644 --- a/tableView.go +++ b/tableView.go @@ -1692,7 +1692,8 @@ func (table *tableViewData) handleCommand(self View, command PropertyName, data current := tableViewCurrent(table) if row, ok := dataIntProperty(data, "row"); ok && row != current.Row { current.Row = row - table.setRaw(Current, current.Row) + current.Column = -1 + table.setRaw(Current, current) for _, listener := range getOneArgEventListeners[TableView, int](table, nil, TableRowSelectedEvent) { listener.Run(table, row) } @@ -1706,7 +1707,7 @@ func (table *tableViewData) handleCommand(self View, command PropertyName, data if row != current.Row || column != current.Column { current.Row = row current.Column = column - table.setRaw(Current, current.Row) + table.setRaw(Current, current) for _, listener := range getTwoArgEventListeners[TableView, int](table, nil, TableCellSelectedEvent) { listener.Run(table, row, column)