Skip to content

Commit

Permalink
fix(button): remove disabled attribute when disabled value is false…
Browse files Browse the repository at this point in the history
… for MdAnchor
  • Loading branch information
tinayuangao committed Nov 9, 2016
1 parent 8f0265c commit 4840d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ export class MdButton {

/** Whether the ripple effect on click should be disabled. */
private _disableRipple: boolean = false;
private _disabled: boolean = false;
private _disabled: boolean = null;

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

@Input()
get disabled() { return this._disabled; }
set disabled(value: boolean) { this._disabled = coerceBooleanProperty(value); }
set disabled(value: boolean) { this._disabled = coerceBooleanProperty(value) ? true : null; }

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

Expand Down

0 comments on commit 4840d89

Please sign in to comment.