From 3f88f0596a934ca2889bed4496d7d1bad683803b Mon Sep 17 00:00:00 2001 From: Yusuke Kimita Date: Wed, 1 Apr 2015 21:45:54 +0900 Subject: [PATCH] it is not reacting the link behind the backdorop. --- js/popovers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/popovers.js b/js/popovers.js index dc87b2b..363155e 100644 --- a/js/popovers.js +++ b/js/popovers.js @@ -34,10 +34,11 @@ element.classList.add('backdrop'); - element.addEventListener('touchend', function () { + element.addEventListener('touchend', function (e) { popover.addEventListener(window.RATCHET.getTransitionEnd, onPopoverHidden); popover.classList.remove('visible'); popover.parentNode.removeChild(backdrop); + e.preventDefault(); }); return element;