Skip to content

Commit

Permalink
Merge pull request #5473 from oostmeijer/master
Browse files Browse the repository at this point in the history
fix for error when element doesn't have the select function
  • Loading branch information
dlgski authored Sep 20, 2016
2 parents 2e01377 + 443a635 commit 5d17f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/edit/js/gridEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@
$timeout(function () {
$elm[0].focus();
//only select text if it is not being replaced below in the cellNav viewPortKeyPress
if ($elm[0].select && $scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav)) {
if ($elm[0].select && ($scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav))) {
$elm[0].select();
}
else {
Expand Down

0 comments on commit 5d17f2b

Please sign in to comment.