Skip to content

Commit

Permalink
fix(FormTouchOnHover): input/output switch 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Aug 6, 2018
1 parent 487e75a commit 4f664ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/ng-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jaspero/ng-helpers",
"version": "0.0.10",
"version": "0.0.11",
"peerDependencies": {
"@angular/common": "^6.0.0",
"@angular/core": "^6.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ export class FormTouchOnHoverDirective {
/**
* Entry FormGroup which to iterate over
*/
@Input() jpFormTouched: FormGroup | FormArray;
@Input() jpFormTouchOnHover: FormGroup | FormArray;

/**
* Outputs when form finish iterating
*/
@Output() jpFormTouchOnHover = new EventEmitter();
@Output() jpFormTouched = new EventEmitter();

@HostListener('mouseenter')
enter() {
FormTouchOnHoverDirective.markFormGroupTouched(this.jpFormTouched);
this.jpFormTouchOnHover.emit();
FormTouchOnHoverDirective.markFormGroupTouched(this.jpFormTouchOnHover);
this.jpFormTouched.emit();
}
}

0 comments on commit 4f664ad

Please sign in to comment.