Skip to content

Commit 6268333

Browse files
committed
Merge pull request #5045 from tomgutz/master
fix(edit): Error on opening custom cell editor who's first element has no select method
2 parents 2b6ec4f + bdd19f6 commit 6268333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/edit/js/gridEdit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@
935935
$timeout(function () {
936936
$elm[0].focus();
937937
//only select text if it is not being replaced below in the cellNav viewPortKeyPress
938-
if ($scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav)) {
938+
if ($elm[0].select && $scope.col.colDef.enableCellEditOnFocus || !(uiGridCtrl && uiGridCtrl.grid.api.cellNav)) {
939939
$elm[0].select();
940940
}
941941
else {

0 commit comments

Comments
 (0)