Permalink
Browse files

Prevent Event propagation on split buttons where the main button trig…

…gers a modal
  • Loading branch information...
James Barlow
James Barlow committed Sep 17, 2014
1 parent 597daac commit 9f0b4b9d3705835b012dc62c74b71a7160344509
Showing with 3 additions and 0 deletions.
  1. +3 −0 js/foundation/foundation.dropdown.js
@@ -31,6 +31,9 @@
var settings = S(this).data(self.attr_name(true) + '-init') || self.settings;
if (!settings.is_hover || Modernizr.touch) {
e.preventDefault();
if (S(this).parent('[data-reveal-id]')) {
e.stopPropagation();
}
self.toggle($(this));
}
})

0 comments on commit 9f0b4b9

Please sign in to comment.