Skip to content

Commit

Permalink
Bug fix in columnChooser in case of usage grouped headers
Browse files Browse the repository at this point in the history
Thank @Luca7993 (https://github.com/Luca7993) for reporting the bug. See [the issue](#261 (comment)) for more detailes.
  • Loading branch information
OlegKi committed Nov 4, 2016
1 parent 29eeb7f commit eb2b98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grid.jqueryui.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
},
j + 1 // start enumeration with the index
);
$(items[iColNotInTheGroup >= items.length ? items.length - 1 : iColNotInTheGroup - 1])
$(items[iColNotInTheGroup === undefined || iColNotInTheGroup >= items.length ? items.length - 1 : iColNotInTheGroup - 1])
.after(items[indexOfAddedItem]);
updateNewColOrder();
}
Expand Down

0 comments on commit eb2b98e

Please sign in to comment.