Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(buttons): allow selection of undisabled button
Browse files Browse the repository at this point in the history
- When a button has been toggled between disabled and not, fix allowing selection of the button to occur

Fixes #4088
  • Loading branch information
wesleycho committed Aug 3, 2015
1 parent 758860d commit 707fbf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buttons/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ angular.module('ui.bootstrap.buttons', [])

//ui->model
element.bind(buttonsCtrl.toggleEvent, function () {
if ('disabled' in attrs) {
if (attrs.disabled) {
return;
}

Expand Down

0 comments on commit 707fbf5

Please sign in to comment.