]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Accomodate for case when document is clicked (hard to accomplish UI wise), but fairly... 6175/head
authorse7 <se7@users.noreply.github.com>
Tue, 6 Jan 2015 19:36:25 +0000 (11:36 -0800)
committerse7 <se7@users.noreply.github.com>
Tue, 6 Jan 2015 19:36:25 +0000 (11:36 -0800)
js/foundation/foundation.dropdown.js

index 5f3886c511401fc538b2a4ae06cb30c7206625d1..18ed5606316495f09040a161959d8de781f1b642 100644 (file)
@@ -91,7 +91,7 @@
               self.close.call(self, S('[' + self.attr_name() + '-content]'));
           }
 
-          if (!$.contains(document.documentElement, e.target)) {
+          if (e.target !== document && !$.contains(document.documentElement, e.target)) {
             return;
           }