Skip to content

Commit

Permalink
Merge pull request #26 from f1amy/fix-triggering-from-bubble
Browse files Browse the repository at this point in the history
check that the event is not triggered from bubble
  • Loading branch information
loveorigami authored Jun 10, 2019
2 parents 27903f2 + 40a1897 commit f044fc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/assets/js/kb-modal-ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
* Requests the content of the modal and injects it, called after the
* modal is shown
*/
ModalAjax.prototype.shown = function () {
ModalAjax.prototype.shown = function (event) {
if (event.target != this.element) {
return;
}

var self = this;

Expand Down

0 comments on commit f044fc1

Please sign in to comment.