diff options
| author | GeoSot <[email protected]> | 2021-03-17 07:44:15 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-17 07:44:15 +0200 |
| commit | c5083d5fc372b750ceea35d72cafa26562762b0c (patch) | |
| tree | 91ccd8f8a06dc8908dcd73036e8bdae2336e2808 /js/src/util/index.js | |
| parent | c198eb6319d63c5414dbe3036ad160bd78d4cf01 (diff) | |
| download | bootstrap-c5083d5fc372b750ceea35d72cafa26562762b0c.tar.xz bootstrap-c5083d5fc372b750ceea35d72cafa26562762b0c.zip | |
Use more safe check for 'isDisabled' helper (#33385)
Diffstat (limited to 'js/src/util/index.js')
| -rw-r--r-- | js/src/util/index.js | 2 |
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 => { |
