From: Gavin Ballard Date: Mon, 11 Mar 2013 00:01:23 +0000 (+1100) Subject: Fixed #1822 - Click event propagation isn't stopped when closing reveal modals. X-Git-Tag: v4.0.8~31^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1823%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fixed #1822 - Click event propagation isn't stopped when closing reveal modals. --- diff --git a/js/foundation/foundation.reveal.js b/js/foundation/foundation.reveal.js index 2e797b6a8..83f655406 100644 --- a/js/foundation/foundation.reveal.js +++ b/js/foundation/foundation.reveal.js @@ -64,6 +64,7 @@ } }) .on('click.fndtn.reveal touchend.click.fndtn.reveal', this.close_targets(), function (e) { + e.preventDefault(); if (!self.locked) { self.locked = true; self.close.call(self, $(this).closest('.reveal-modal'));