Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2353 from dinhviethoa/2350-button-disabled-dart2js
Browse files Browse the repository at this point in the history
Disabled buttons in dart2js version too
  • Loading branch information
dinhvh committed Jun 6, 2014
2 parents 5160b65 + e601468 commit 8411d93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions widgets/lib/spark_dialog_button/spark_dialog_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ class SparkDialogButton extends SparkWidget {
// element has [overlayToggle] attribute.
setAttr('overlayToggle', submit || dismiss || cancel);
}

// TODO(ussuri): BUG #2252
@override
void deliverChanges() {
super.deliverChanges();
getShadowDomElement('spark-button').setAttr('disabled', disabled);
}
}

0 comments on commit 8411d93

Please sign in to comment.