We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e588d59 commit 47c77deCopy full SHA for 47c77de
src/js/core/directives/ui-grid-header-cell.js
@@ -33,8 +33,8 @@
33
};
34
$scope.isSortPriorityVisible = function() {
35
//show sort priority if column is sorted and there is at least one other sorted column
36
- return $scope.col.sort.priority !== undefined && $scope.grid.columns.some(function(element, index){
37
- return element.sort.priority !== undefined && element !== $scope.col;
+ return angular.isNumber($scope.col.sort.priority) && $scope.grid.columns.some(function(element, index){
+ return angular.isNumber(element.sort.priority) && element !== $scope.col;
38
});
39
40
$scope.getSortDirectionAriaLabel = function(){
0 commit comments