Skip to content

Commit 6b5807f

Browse files
committed
feat(edit): raise beginCellEdit in timeout
allows complex editors time to render so they can properly attach to the beginCellEdit event
1 parent 708231f commit 6b5807f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/features/edit/js/gridEdit.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,10 @@
774774
});
775775

776776
$scope.$broadcast(uiGridEditConstants.events.BEGIN_CELL_EDIT, triggerEvent);
777-
$scope.grid.api.edit.raise.beginCellEdit($scope.row.entity, $scope.col.colDef, triggerEvent);
777+
$timeout(function () {
778+
//execute in a timeout to give any complex editor templates a cycle to completely render
779+
$scope.grid.api.edit.raise.beginCellEdit($scope.row.entity, $scope.col.colDef, triggerEvent);
780+
});
778781
}
779782

780783
function endEdit() {

0 commit comments

Comments
 (0)