From 43c2a15f9d9423fdd3211684e18efeacd7534d3f Mon Sep 17 00:00:00 2001 From: Alec Perkins Date: Mon, 17 Sep 2012 10:01:44 -0400 Subject: [PATCH] Prevent the touchstart event propagation on the dropdown menus in the navbar. This allows the dropdowns to be used on a touch device. --- docs/template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/template.html b/docs/template.html index 127978d27..4ac94f404 100644 --- a/docs/template.html +++ b/docs/template.html @@ -118,7 +118,7 @@ if (location.hash) shiftWindow(); window.addEventListener("hashchange", shiftWindow); - $('.dropdown-menu').click(function(event) { + $('.dropdown-menu').on('click touchstart', function(event) { event.stopPropagation(); });