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:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user