Closed
Description
So I am currently experiencing the same issues as #1639 , but I am also having an issue with tabbing through the grid. I am using ui-grid-edit and ui-grid-cellnav along with ui-grid-selection. When I add in selection, the tabbing of the grid goes haywire.
If I click on a cell to edit and then tab out it skips a cell and goes to the last cell. If I press tab again it completely loses focus. If I remove selection from the grid everything works as expected.
HTML:
<div ui-grid="shiftGrid" ui-grid-edit ui-grid-cellnav ui-grid-selection class="gridShopShifts"></div>
Controller:
$scope.shiftGrid = {
enableSorting: true,
enableFiltering: true,
enableCellEditOnFocus: true,
enableRowSelection: true,
columnDefs: [
{ field: 'ShiftID', displayName: 'Shift ID', type: 'number', enableCellEdit: true, cellClass: 'colAlign', width: '10%' },
{ field: 'ShiftDesc', displayName: 'Description', type: 'string', enableCellEdit: true, cellClass: 'colAlign', width: '55%' },
{ field: 'Capacity', displayName: 'Capacity', type: 'number', enableCellEdit: true, width: '35%', cellFilter: 'addCommasFilter', cellClass: 'colAlignLastCol' },
]
};
Here is a screenshot of the grid:
EXAMPLE: If I was in edit mode and clicked cell number 1, it will jump to number 2 when tab is pressed and then lose focus when pressed again.