From 6b5807fe5ddd0bba9a4b7535d5109923a1981388 Mon Sep 17 00:00:00 2001 From: swalters Date: Fri, 31 Jul 2015 12:23:05 -0500 Subject: [PATCH] feat(edit): raise beginCellEdit in timeout allows complex editors time to render so they can properly attach to the beginCellEdit event --- src/features/edit/js/gridEdit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/edit/js/gridEdit.js b/src/features/edit/js/gridEdit.js index c44641ba18..b4f209432d 100644 --- a/src/features/edit/js/gridEdit.js +++ b/src/features/edit/js/gridEdit.js @@ -774,7 +774,10 @@ }); $scope.$broadcast(uiGridEditConstants.events.BEGIN_CELL_EDIT, triggerEvent); - $scope.grid.api.edit.raise.beginCellEdit($scope.row.entity, $scope.col.colDef, triggerEvent); + $timeout(function () { + //execute in a timeout to give any complex editor templates a cycle to completely render + $scope.grid.api.edit.raise.beginCellEdit($scope.row.entity, $scope.col.colDef, triggerEvent); + }); } function endEdit() {