sillicon
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
3 deletions
-
src/definitions/modules/dropdown.js
|
|
@ -2420,9 +2420,13 @@ $.fn.dropdown = function(parameters) { |
|
|
|
}, |
|
|
|
direction: function($menu) { |
|
|
|
if(settings.direction == 'auto') { |
|
|
|
// reset position
|
|
|
|
module.remove.upward(); |
|
|
|
|
|
|
|
// reset position, remove upward if it's base menu
|
|
|
|
if (!$menu) { |
|
|
|
module.remove.upward(); |
|
|
|
} else if ($menu.hasClass('upward')) { |
|
|
|
//we need make sure when make assertion openDownward for $menu, $menu does not have upward class
|
|
|
|
$menu.removeClass('upward'); |
|
|
|
} |
|
|
|
if(module.can.openDownward($menu)) { |
|
|
|
module.remove.upward($menu); |
|
|
|
} |
|
|
|