diff options
Diffstat (limited to 'js/src/button.js')
-rw-r--r-- | js/src/button.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/button.js b/js/src/button.js index 6edd5cb64f..314d2a22a0 100644 --- a/js/src/button.js +++ b/js/src/button.js @@ -25,6 +25,7 @@ const DATA_API_KEY = '.data-api' const ClassName = { ACTIVE: 'active', BUTTON: 'btn', + DISABLED: 'disabled', FOCUS: 'focus' } @@ -89,8 +90,8 @@ class Button { if (triggerChangeEvent) { if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || - input.classList.contains('disabled') || - rootElement.classList.contains('disabled')) { + input.classList.contains(ClassName.DISABLED) || + rootElement.classList.contains(ClassName.DISABLED)) { return } |