Skip to content

Commit

Permalink
fix(data-table): td-data-table-column return proper name in sort event (
Browse files Browse the repository at this point in the history
#353)

the td-data-table-column wasnt setting the name properly and getting it from a global name
  • Loading branch information
emoralesb05 committed Feb 22, 2017
1 parent cf20ced commit 8a19aa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class TdDataTableColumnComponent {
}

handleSortBy(): void {
this.onSortChange.emit({name: name, order: this._sortOrder});
this.onSortChange.emit({name: this.name, order: this._sortOrder});
}

isAscending(): boolean {
Expand Down

0 comments on commit 8a19aa0

Please sign in to comment.