aboutsummaryrefslogtreecommitdiff
path: root/js/src/util
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2021-03-17 07:44:15 +0200
committerGitHub <[email protected]>2021-03-17 07:44:15 +0200
commitc5083d5fc372b750ceea35d72cafa26562762b0c (patch)
tree91ccd8f8a06dc8908dcd73036e8bdae2336e2808 /js/src/util
parentc198eb6319d63c5414dbe3036ad160bd78d4cf01 (diff)
downloadbootstrap-c5083d5fc372b750ceea35d72cafa26562762b0c.tar.xz
bootstrap-c5083d5fc372b750ceea35d72cafa26562762b0c.zip
Use more safe check for 'isDisabled' helper (#33385)
Diffstat (limited to 'js/src/util')
-rw-r--r--js/src/util/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js
index e268b0728..e9950c9e3 100644
--- a/js/src/util/index.js
+++ b/js/src/util/index.js
@@ -166,7 +166,7 @@ const isDisabled = element => {
return element.disabled
}
- return element.getAttribute('disabled') !== 'false'
+ return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false'
}
const findShadowRoot = element => {