Open ipeshev opened 2 years ago
Seems like the focus is not correctly updated as the cell element is reused, and thus already focused. A possible workaround until this is fixed is to reset the focus when clicking the Add button, see demo:
<ng-template kendoGridToolbarTemplate>
<button kendoGridAddCommand (click)="resetFocus(grid)">Add new</button>
</ng-template>
...
public resetFocus(grid: GridComponent) {
grid.focusCell(0, 0);
}
Describe the bug New row's editable input does not get focused if its column has been already focused, it does get correctly focused when "Add new" is directly clicked (without entering editable cell first).
To Reproduce Built-In Directives - Grid - Kendo UI for Angular (telerik.com)
Esc
to exit the edit mode (this will close the editor and leave focus at the cell)Add new
button to insert new rowExpected behavior It should focus cell's input in, when "Add new" is invoked.