Skip to content

Commit 486433b

Browse files
committed
fix(edit):, IE was not putting cursor in correct location
When using CellNav, IE put cursor at beginning of text instead of end of text that user had typed to initiate editing
1 parent d609a10 commit 486433b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/features/edit/js/gridEdit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,9 @@
878878
if ($scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav)) {
879879
$elm[0].select();
880880
}
881+
else {
882+
$elm[0].setSelectionRange($elm[0].value.length, $elm[0].value.length);
883+
}
881884
});
882885

883886
//set the keystroke that started the edit event

0 commit comments

Comments
 (0)