mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-27 13:59:06 +02:00
Use a single class name for opened/expanded/shown state of widgets
This commit is contained in:
@@ -36,9 +36,9 @@ const Alert = (($) => {
|
||||
}
|
||||
|
||||
const ClassName = {
|
||||
ALERT : 'alert',
|
||||
FADE : 'fade',
|
||||
IN : 'in'
|
||||
ALERT : 'alert',
|
||||
FADE : 'fade',
|
||||
ACTIVE : 'active'
|
||||
}
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ const Alert = (($) => {
|
||||
}
|
||||
|
||||
_removeElement(element) {
|
||||
$(element).removeClass(ClassName.IN)
|
||||
$(element).removeClass(ClassName.ACTIVE)
|
||||
|
||||
if (!Util.supportsTransitionEnd() ||
|
||||
!$(element).hasClass(ClassName.FADE)) {
|
||||
|
Reference in New Issue
Block a user