ui-grid
ui-grid copied to clipboard
[saveState | externalSorting] external sorting listener invoked without arguments on state restore
Hi, external sorting and saveState plugin don't play nice together. I made a demo out of the saveState plugin tutorial.
- change sorting of a column
- save state
- change sorting again
- restore state
The sorting listener has been called without arguments while the column appears with the little triangle on it.
P.S. thanks for the great job
This seems to be the guilty line:
https://github.com/angular-ui/ng-grid/blob/master/src/features/saveState/js/saveState.js#L552
I'll create a pull request if you agree.
So the problem is that it didn't provide the sort column that changed in the call? If that's what you're fixing then yeah, happily would accept a PR.