mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03: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