We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187e4db commit c42115cCopy full SHA for c42115c
projects/ngx-grid-core/src/lib/controller/selection/operations/remove-orphaned-rows.operation.ts
@@ -27,6 +27,11 @@ export class RemoveOrphanedRows {
27
if (orphanedRowKeys.has(cell.rowKey)) nextSelection.remove(cell)
28
}
29
30
+ const focusedRowKey = this.controller.gridEvents.CellFocusChangedEvent.state?.rowKey?.toString() ?? null
31
+ if (nextSelection.cellCount == 0 || focusedRowKey && orphanedRowKeys.has(focusedRowKey)) {
32
+ this.controller.gridEvents.CellFocusChangedEvent.emit(undefined)
33
+ }
34
+
35
this.controller.EmitNextSelection.run(nextSelection.cellCount > 0 ? nextSelection : null)
36
this.controller.EmitNextSelectionSlice.run()
37
0 commit comments