From 707fbf55c04db115d97d785bec292212e410a1ee Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Mon, 3 Aug 2015 14:52:01 -0700 Subject: [PATCH] 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 --- src/buttons/buttons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buttons/buttons.js b/src/buttons/buttons.js index c25bd135f2..95e3c8ddb2 100644 --- a/src/buttons/buttons.js +++ b/src/buttons/buttons.js @@ -24,7 +24,7 @@ angular.module('ui.bootstrap.buttons', []) //ui->model element.bind(buttonsCtrl.toggleEvent, function () { - if ('disabled' in attrs) { + if (attrs.disabled) { return; }