Skip to content

Commit 4840d89

Browse files
committed
fix(button): remove disabled attribute when disabled value is false for MdAnchor
1 parent 8f0265c commit 4840d89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/button/button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ export class MdButton {
4343

4444
/** Whether the ripple effect on click should be disabled. */
4545
private _disableRipple: boolean = false;
46-
private _disabled: boolean = false;
46+
private _disabled: boolean = null;
4747

4848
@Input()
4949
get disableRipple() { return this._disableRipple; }
5050
set disableRipple(v) { this._disableRipple = coerceBooleanProperty(v); }
5151

5252
@Input()
5353
get disabled() { return this._disabled; }
54-
set disabled(value: boolean) { this._disabled = coerceBooleanProperty(value); }
54+
set disabled(value: boolean) { this._disabled = coerceBooleanProperty(value) ? true : null; }
5555

5656
constructor(private _elementRef: ElementRef, private _renderer: Renderer) { }
5757

0 commit comments

Comments
 (0)