Skip to content

Commit

Permalink
fix(dropdown): hide open menus on destroy for correct state reset
Browse files Browse the repository at this point in the history
Closes #653, #654
  • Loading branch information
lubber-de authored and Sean committed Apr 11, 2019
1 parent bc1f08b commit c374bcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/definitions/modules/dropdown.js
Expand Up @@ -140,6 +140,9 @@ $.fn.dropdown = function(parameters) {
destroy: function() {
module.verbose('Destroying previous dropdown', $module);
module.remove.tabbable();
module.remove.active();
$menu.transition('stop all');
$menu.removeClass(className.visible).addClass(className.hidden);
$module
.off(eventNamespace)
.removeData(moduleNamespace)
Expand Down

0 comments on commit c374bcf

Please sign in to comment.