Skip to content

Commit 7eebad0

Browse files
committed
chore(grids): strongly type doubletap event for preventDefault call
Due to incompatible signatures (void vs Function) w/ older ts 3.2
1 parent 937968d commit 7eebad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,10 +681,10 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy {
681681
* @internal
682682
*/
683683
@HostListener('dblclick', ['$event'])
684-
public onDoubleClick = (event: MouseEvent| HammerInput) => {
684+
public onDoubleClick = (event: MouseEvent | HammerInput) => {
685685
if (event.type === 'doubletap') {
686686
// prevent double-tap to zoom on iOS
687-
event.preventDefault();
687+
(event as HammerInput).preventDefault();
688688
}
689689
if (this.editable && !this.editMode && !this.row.deleted) {
690690
this.crudService.begin(this);

0 commit comments

Comments
 (0)