We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9397359 + 0211002 commit 13a1117Copy full SHA for 13a1117
src/features/edit/js/gridEdit.js
@@ -1115,8 +1115,8 @@
1115
*
1116
*/
1117
module.directive('uiGridEditDropdown',
1118
- ['uiGridConstants', 'uiGridEditConstants',
1119
- function (uiGridConstants, uiGridEditConstants) {
+ ['uiGridConstants', 'uiGridEditConstants', '$timeout',
+ function (uiGridConstants, uiGridEditConstants, $timeout) {
1120
return {
1121
require: ['?^uiGrid', '?^uiGridRenderContainer'],
1122
scope: true,
@@ -1131,7 +1131,10 @@
1131
1132
//set focus at start of edit
1133
$scope.$on(uiGridEditConstants.events.BEGIN_CELL_EDIT, function () {
1134
- $elm[0].focus();
+ $timeout(function(){
1135
+ $elm[0].focus();
1136
+ });
1137
+
1138
$elm[0].style.width = ($elm[0].parentElement.offsetWidth - 1) + 'px';
1139
$elm.on('blur', function (evt) {
1140
$scope.stopEdit(evt);
0 commit comments