Skip to content

Commit

Permalink
Fix issue where multiple modal init order matters #5559
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Aug 7, 2017
1 parent 44b8222 commit 4ccf825
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/definitions/modules/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ $.fn.modal = function(parameters) {
module.hideOthers(module.showModal);
}
else {
if(settings.allowMultiple && settings.detachable) {
$module.detach().appendTo($dimmer);
}
settings.onShow.call(element);
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
module.debug('Showing modal with css animations');
Expand Down

0 comments on commit 4ccf825

Please sign in to comment.