angular-ui/ui-grid

Save columns state not working

Open

#4,370 opened on Sep 15, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
good first issuegrid-savestate

Description

Grid.prototype.sortColumn = function sortColumn(column, directionOrAdd, add) {

...

Why default typeof column.sort is Array? Whe it is object, then state is ok. First time sorting it is Array and state can not be saved.

Contributor guide