File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1067
1067
} ) ;
1068
1068
}
1069
1069
1070
+ // In case we created a new row, and we are the new created row by ngRepeat
1071
+ // then this cell content might have been selected previously
1072
+ refreshCellFocus ( ) ;
1073
+
1070
1074
function preventMouseDown ( evt ) {
1071
1075
//Prevents the foucus event from firing if the click event is already going to fire.
1072
1076
//If both events fire it will cause bouncing behavior.
1085
1089
1086
1090
// Refresh cell focus when a new row id added to the grid
1087
1091
var dataChangeDereg = uiGridCtrl . grid . registerDataChangeCallback ( function ( grid ) {
1092
+ // Clear the focus if it's set to avoid the wrong cell getting focused during
1093
+ // a short period of time (from now until $timeout function executed)
1094
+ clearFocus ( ) ;
1095
+
1088
1096
$timeout ( refreshCellFocus ) ;
1089
1097
} , [ uiGridConstants . dataChange . ROW ] ) ;
1090
1098
You can’t perform that action at this time.
0 commit comments