From 7a554d2d5aae448be04c05ceac57ad001bdb6f65 Mon Sep 17 00:00:00 2001 From: Vazgen Torosyan Date: Sun, 30 Apr 2017 23:29:30 +0400 Subject: [PATCH] e.preventDefault() on close When closing dialog triggered click event on other elements (menu element example) --- src/js/jquery.swipebox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/jquery.swipebox.js b/src/js/jquery.swipebox.js index f2fd0155..ac37efcd 100644 --- a/src/js/jquery.swipebox.js +++ b/src/js/jquery.swipebox.js @@ -584,8 +584,9 @@ } ); } - $( '#swipebox-close' ).bind( action, function() { + $( '#swipebox-close' ).bind( action, function(e) { $this.closeSlide(); + e.preventDefault(); } ); },