Skip to content

Commit

Permalink
fix(tooltip): show & hide methods should not need any arguments (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidloiret authored and valorkin committed Oct 10, 2016
1 parent e8932af commit b80c0b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class TooltipDirective {

// todo: filter triggers
// params: event, target
@HostListener('focusin', ['$event', '$target'])
@HostListener('mouseenter', ['$event', '$target'])
@HostListener('focusin')
@HostListener('mouseenter')
public show():void {
if (this.visible || !this.enable) {
return;
Expand All @@ -68,8 +68,8 @@ export class TooltipDirective {
}

// params event, target
@HostListener('focusout', ['$event', '$target'])
@HostListener('mouseleave', ['$event', '$target'])
@HostListener('focusout')
@HostListener('mouseleave')
public hide():void {
if (!this.visible) {
return;
Expand Down

0 comments on commit b80c0b4

Please sign in to comment.