Skip to content

Commit

Permalink
Fixed #419
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed May 27, 2016
1 parent a6a8367 commit 2ef9a79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {DomHandler} from '../dom/domhandler';
@Directive({
selector: '[pButton]',
host: {
'[class.ui-state-hover]': 'hover',
'[class.ui-state-hover]': 'hover&&!isDisabled()',
'[class.ui-state-focus]': 'focus',
'[class.ui-state-active]': 'active',
'[class.ui-state-disabled]': 'isDisabled()'
Expand Down Expand Up @@ -45,13 +45,13 @@ export class Button implements AfterViewInit, OnDestroy {
this.initialized = true;
}

@HostListener('mouseover', ['$event'])
onMouseover(e) {
@HostListener('mouseenter', ['$event'])
onMouseenter(e) {
this.hover = true;
}

@HostListener('mouseout', ['$event'])
onMouseout(e) {
@HostListener('mouseleave', ['$event'])
onMouseleave(e) {
this.hover = false;
this.active = false;
}
Expand Down

0 comments on commit 2ef9a79

Please sign in to comment.