Skip to content

Commit

Permalink
Synced from the Blueshift Repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueshift Staff committed Oct 11, 2024
1 parent 187e4db commit c42115c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export class RemoveOrphanedRows {
if (orphanedRowKeys.has(cell.rowKey)) nextSelection.remove(cell)
}

const focusedRowKey = this.controller.gridEvents.CellFocusChangedEvent.state?.rowKey?.toString() ?? null
if (nextSelection.cellCount == 0 || focusedRowKey && orphanedRowKeys.has(focusedRowKey)) {
this.controller.gridEvents.CellFocusChangedEvent.emit(undefined)
}

this.controller.EmitNextSelection.run(nextSelection.cellCount > 0 ? nextSelection : null)
this.controller.EmitNextSelectionSlice.run()

Expand Down

0 comments on commit c42115c

Please sign in to comment.