Skip to content

Commit

Permalink
Fix dropdown issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sillicon committed Jun 28, 2018
1 parent 3838710 commit 601853c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2415,9 +2415,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);
}
Expand Down

0 comments on commit 601853c

Please # to comment.