Skip to content

Commit

Permalink
fix(FormTouchOnHover): compile errors 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Jun 16, 2018
1 parent e50183b commit 659f72f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {FormGroup} from '@angular/forms';
@Directive({
selector: '[jpFormTouchOnHover]'
})
export class TouchFormOnHoverDirective {
export class FormTouchOnHoverDirective {

/**
* Entry FormGroup which to iterate over
Expand All @@ -23,7 +23,7 @@ export class TouchFormOnHoverDirective {
}

private _markFormGroupTouched(formGroup: FormGroup) {
(Object.values(formGroup.controls) as any[])
(Object as any).values(formGroup.controls)
.forEach(control => {
control.markAsTouched();

Expand Down

0 comments on commit 659f72f

Please sign in to comment.