Skip to content

Commit 5d17f2b

Browse files
authored
Merge pull request #5473 from oostmeijer/master
fix for error when element doesn't have the select function
2 parents 2e01377 + 443a635 commit 5d17f2b

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
@@ -936,7 +936,7 @@
936936
$timeout(function () {
937937
$elm[0].focus();
938938
//only select text if it is not being replaced below in the cellNav viewPortKeyPress
939-
if ($elm[0].select && $scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav)) {
939+
if ($elm[0].select && ($scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav))) {
940940
$elm[0].select();
941941
}
942942
else {

0 commit comments

Comments
 (0)