Skip to content

Commit

Permalink
Fix a bug in certain scenarios when the dialog is closed.
Browse files Browse the repository at this point in the history
Fix a bug in certain scenarios when the dialog is closed.
  • Loading branch information
drublic committed Jun 6, 2016
2 parents 20ffd8c + 84922cb commit 699ffa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modal.js
Expand Up @@ -484,7 +484,7 @@

// And close modal without hash
this.on('click', document.querySelectorAll('.modal-close'), function (event) {
if (modal.activeElement._noHash){
if (modal.activeElement && modal.activeElement._noHash){
modal.mainHandler(event, true);
}
});
Expand Down

0 comments on commit 699ffa5

Please sign in to comment.