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

Commit 707fbf5

Browse files
committed
fix(buttons): allow selection of undisabled button
- When a button has been toggled between disabled and not, fix allowing selection of the button to occur Fixes #4088
1 parent 758860d commit 707fbf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buttons/buttons.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ angular.module('ui.bootstrap.buttons', [])
2424

2525
//ui->model
2626
element.bind(buttonsCtrl.toggleEvent, function () {
27-
if ('disabled' in attrs) {
27+
if (attrs.disabled) {
2828
return;
2929
}
3030

0 commit comments

Comments
 (0)