We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3838710 commit 601853cCopy full SHA for 601853c
src/definitions/modules/dropdown.js
@@ -2415,9 +2415,13 @@ $.fn.dropdown = function(parameters) {
2415
},
2416
direction: function($menu) {
2417
if(settings.direction == 'auto') {
2418
- // reset position
2419
- module.remove.upward();
2420
-
+ // reset position, remove upward if it's base menu
+ if (!$menu) {
+ module.remove.upward();
2421
+ } else if ($menu.hasClass('upward')) {
2422
+ //we need make sure when make assertion openDownward for $menu, $menu does not have upward class
2423
+ $menu.removeClass('upward');
2424
+ }
2425
if(module.can.openDownward($menu)) {
2426
module.remove.upward($menu);
2427
}
0 commit comments