1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 06:36:33 +02:00

Use more safe check for 'isDisabled' helper (#33385)

This commit is contained in:
GeoSot
2021-03-17 07:44:15 +02:00
committed by GitHub
parent c198eb6319
commit c5083d5fc3
3 changed files with 6 additions and 3 deletions

View File

@@ -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 => {