Skip to content

Commit f5e916d

Browse files
authored
fix(sort): fix incorrect conditional grouping (#7427)
1 parent 811e504 commit f5e916d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/sort/sort-header.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@ export class MatSortHeader implements MatSortable {
146146
/** Whether this MatSortHeader is currently sorted in either ascending or descending order. */
147147
_isSorted() {
148148
return this._sort.active == this.id &&
149-
this._sort.direction === 'asc' || this._sort.direction === 'desc';
149+
(this._sort.direction === 'asc' || this._sort.direction === 'desc');
150150
}
151151
}

0 commit comments

Comments
 (0)