Skip to content

Commit

Permalink
Fixed #2615
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Apr 28, 2017
1 parent 75e4b26 commit 2b62560
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions components/datatable/datatable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1590,10 +1590,15 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni
}
}

if(this.domHandler.hasClass(prevCell, 'ui-editable-column'))
return prevCell;
else
return this.findPreviousEditableColumn(prevCell);
if(prevCell) {
if(this.domHandler.hasClass(prevCell, 'ui-editable-column'))
return prevCell;
else
return this.findPreviousEditableColumn(prevCell);
}
else {
return null;
}
}

findNextEditableColumn(cell: Element) {
Expand All @@ -1606,10 +1611,15 @@ export class DataTable implements AfterViewChecked,AfterViewInit,AfterContentIni
}
}

if(this.domHandler.hasClass(nextCell, 'ui-editable-column'))
return nextCell;
else
return this.findNextEditableColumn(nextCell);
if(nextCell) {
if(this.domHandler.hasClass(nextCell, 'ui-editable-column'))
return nextCell;
else
return this.findNextEditableColumn(nextCell);
}
else {
return null;
}
}

onCustomEditorFocusPrev(event: KeyboardEvent) {
Expand Down

0 comments on commit 2b62560

Please sign in to comment.