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

fix some errors in our js

This commit is contained in:
Johann-S
2017-06-16 10:51:22 +02:00
parent 11a5ca8ff3
commit 6ed8a735d0

View File

@@ -250,12 +250,10 @@ const Dropdown = (($) => {
if ($(this._menu).hasClass(ClassName.MENURIGHT)) { if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
placement = AttachmentMap.TOPEND placement = AttachmentMap.TOPEND
} }
} } else if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
else {
if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
placement = AttachmentMap.BOTTOMEND placement = AttachmentMap.BOTTOMEND
} }
}
return placement return placement
} }