diff options
author | Johann-S <johann.servoire@gmail.com> | 2017-05-16 10:59:44 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2017-05-16 11:09:48 +0300 |
commit | 3719ed4cb69fd8c75869158b086b4fc077e63e14 (patch) | |
tree | 20c4aa1021aacd824b752d5ab85377ac782b4d90 /js/dist/button.js | |
parent | 183205afb87582bf905e1fac0b6c5353c0b2d28c (diff) |
build
Diffstat (limited to 'js/dist/button.js')
-rw-r--r-- | js/dist/button.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/dist/button.js b/js/dist/button.js index 367e50495d..cd82242c12 100644 --- a/js/dist/button.js +++ b/js/dist/button.js @@ -82,6 +82,9 @@ var Button = function ($) { } if (triggerChangeEvent) { + if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) { + return; + } input.checked = !$(this._element).hasClass(ClassName.ACTIVE); $(input).trigger('change'); } |