From f5e916d667ebd0508bb15f25b81367b7bd95a09c Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Fri, 29 Sep 2017 15:57:47 -0700 Subject: [PATCH] fix(sort): fix incorrect conditional grouping (#7427) --- src/lib/sort/sort-header.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sort/sort-header.ts b/src/lib/sort/sort-header.ts index 87f497d40c2..eda8f464a56 100644 --- a/src/lib/sort/sort-header.ts +++ b/src/lib/sort/sort-header.ts @@ -146,6 +146,6 @@ export class MatSortHeader implements MatSortable { /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */ _isSorted() { return this._sort.active == this.id && - this._sort.direction === 'asc' || this._sort.direction === 'desc'; + (this._sort.direction === 'asc' || this._sort.direction === 'desc'); } }