Skip to content

Commit

Permalink
fix(sort): indicator hint not showing up on mobile
Browse files Browse the repository at this point in the history
* Due to the fact that the sort module uses the `(longpress)` event, the custom HammerJS gesture config needs to be provided.

Related to #12940
  • Loading branch information
devversion authored and jelbourn committed Sep 6, 2018
1 parent c812268 commit e40583f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/sort/sort-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/

import {NgModule} from '@angular/core';
import {GestureConfig} from '@angular/material/core';
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
import {MatSortHeader} from './sort-header';
import {MatSort} from './sort';
import {MAT_SORT_HEADER_INTL_PROVIDER} from './sort-header-intl';
Expand All @@ -17,6 +19,9 @@ import {CommonModule} from '@angular/common';
imports: [CommonModule],
exports: [MatSort, MatSortHeader],
declarations: [MatSort, MatSortHeader],
providers: [MAT_SORT_HEADER_INTL_PROVIDER]
providers: [
MAT_SORT_HEADER_INTL_PROVIDER,
{provide: HAMMER_GESTURE_CONFIG, useClass: GestureConfig},
]
})
export class MatSortModule {}

0 comments on commit e40583f

Please sign in to comment.