Skip to content

Commit 33da5f0

Browse files
committed
FastWatch :: Fix watcher handler columnDefs assignment
If you want to use fastWatch:true for data and columnDefs then the $watch handler needs to work with both fastWatch:true and false (or undefined). When mapping the incoming columnDefs with the internal columnDefs, always use what is on $scope instead of what the watcher is watching because the watcher is watching different things in the two different cases. #3755
1 parent 6032ac0 commit 33da5f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/directives/ui-grid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
function columnDefsWatchFunction(n, o) {
6969
if (n && n !== o) {
70-
self.grid.options.columnDefs = n;
70+
self.grid.options.columnDefs = $scope.uiGrid.columnDefs;
7171
self.grid.buildColumns({ orderByColumnDefs: true })
7272
.then(function(){
7373

0 commit comments

Comments
 (0)