diff --git a/app_scripts.js b/app_scripts.js index e10f0c3..09679e6 100644 --- a/app_scripts.js +++ b/app_scripts.js @@ -1521,7 +1521,7 @@ function setTableCellCursorByID(tableID, row, column) { function setTableCellCursor(element, row, column) { const cellID = element.id + "-" + row + "-" + column; const cell = document.getElementById(cellID); - if (!cell || cell.getAttribute("inert") != null) { + if (!cell || cell.getAttribute("data-non-selectable") == 1) { return false; } @@ -1712,7 +1712,7 @@ function setTableRowCursorByID(tableID, row) { function setTableRowCursor(element, row) { const tableRowID = element.id + "-" + row; const tableRow = document.getElementById(tableRowID); - if (!tableRow || tableRow.getAttribute("inert") != null) { + if (!tableRow || tableRow.getAttribute("data-non-selectable") == 1) { return false; } diff --git a/tableView.go b/tableView.go index 6c09d76..ef2fe87 100644 --- a/tableView.go +++ b/tableView.go @@ -1122,7 +1122,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) { buffer.WriteString(` onclick="tableRowClickEvent(this, event)"`) if allowRowSelection != nil && !allowRowSelection.AllowRowSelection(row) { - buffer.WriteString(` inert`) + buffer.WriteString(` data-non-selectable=1`) } } @@ -1206,7 +1206,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) { if selectionMode == CellSelection { buffer.WriteString(` onclick="tableCellClickEvent(this, event)"`) if allowCellSelection != nil && !allowCellSelection.AllowCellSelection(row, column) { - buffer.WriteString(` inert`) + buffer.WriteString(` data-non-selectable=1`) } }