Browse Source

Merge d3c87294ce into 6f2a912708

pull/6458/merge
sillicon 2 years ago
committed by GitHub
parent
commit
6a3aca4625
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions
  1. 10
      src/definitions/modules/dropdown.js

10
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);
}

Loading…
Cancel
Save