Skip to content

Commit 443a635

Browse files
authored
fix for error when element doesn't have the select function
1 parent de01b2b commit 443a635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/edit/js/gridEdit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@
938938
$timeout(function () {
939939
$elm[0].focus();
940940
//only select text if it is not being replaced below in the cellNav viewPortKeyPress
941-
if ($elm[0].select && $scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav)) {
941+
if ($elm[0].select && ($scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav))) {
942942
$elm[0].select();
943943
}
944944
else {

0 commit comments

Comments
 (0)