Skip to content

Commit

Permalink
Don't explicitly set disabled when button is busy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed May 5, 2017
1 parent 098490f commit c5b2762
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/WebComponents/Button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
label: String,
busy: {
type: Boolean,
reflectToAttribute: true,
observer: "_busyChanged"
reflectToAttribute: true
}
},
listeners: {
Expand All @@ -43,10 +42,6 @@
this._setCustomLayout(Polymer.dom(this).children.length > 0);
}

private _busyChanged(busy: boolean) {
this.disabled = busy;
}

private _tap(e: TapEvent) {
if (this.disabled) {
e.stopImmediatePropagation();
Expand Down

0 comments on commit c5b2762

Please sign in to comment.