@@ -22,7 +22,7 @@ import {
22
22
'[class.md-button-focus]' : 'isKeyboardFocused' ,
23
23
'(mousedown)' : 'setMousedown()' ,
24
24
'(focus)' : 'setKeyboardFocus()' ,
25
- '(blur)' : 'removeKeyboardFocus()'
25
+ '(blur)' : 'removeKeyboardFocus()' ,
26
26
} ,
27
27
templateUrl : './components/button/button.html' ,
28
28
styleUrls : [ './components/button/button.css' ] ,
@@ -85,7 +85,8 @@ export class MdButton {
85
85
'[class.md-button-focus]' : 'isKeyboardFocused' ,
86
86
'(mousedown)' : 'setMousedown()' ,
87
87
'(focus)' : 'setKeyboardFocus()' ,
88
- '(blur)' : 'removeKeyboardFocus()'
88
+ '(blur)' : 'removeKeyboardFocus()' ,
89
+ '(click)' : 'haltDisabledEvents($event)' ,
89
90
} ,
90
91
templateUrl : './components/button/button.html' ,
91
92
styleUrls : [ './components/button/button.css' ] ,
@@ -118,7 +119,6 @@ export class MdAnchor extends MdButton {
118
119
this . _disabled = ( value != null && value != false ) ? true : null ;
119
120
}
120
121
121
- @HostListener ( 'click' , [ '$event' ] )
122
122
haltDisabledEvents ( event : Event ) {
123
123
// A disabled button shouldn't apply any actions
124
124
if ( this . disabled ) {
0 commit comments