ui-grid
ui-grid copied to clipboard
Default Header Cell Template applies ngSorted to all column headers, regardless of current sort status
The issue is located in headerCell Template, line 1:
ng-class="{ 'ngSorted': !noSortVisible }"
This is only testing for the existence of the noSortVisible function, not actually invoking the method.
Here is a plunkr showing the scenario. I've applied a font color of red to any column headers with the ngSorted style. You can see that in the before state, all column headers are red. In the after, they are only red when the column is sorted upon.
BEFORE: http://plnkr.co/edit/IVbkGFAKGATKgyitdrrD?p=preview
AFTER: http://plnkr.co/edit/ZbRQZHTL0XMx1jyShdb1?p=preview