ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Default Header Cell Template applies ngSorted to all column headers, regardless of current sort status

Open bradlund opened this issue 13 years ago • 0 comments

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

bradlund avatar Aug 30 '13 17:08 bradlund