From 7faeeda099053f1d43d48407a0d89a9a09cb56a4 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 5 Aug 2014 11:01:33 -0500 Subject: [PATCH] fix(backdrop): disable tap longer after backdrop close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To prevent unwanted clicks from happening, such as an input getting focus after clicking “OK” on a popup, keep the backdrop visible for a longer period of time. The simulated click is what closes the popup’s backdrop, but the native click will still happen 300ms later, which may cause another input to receive focus. Closes #1536 --- js/angular/service/backdrop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/service/backdrop.js b/js/angular/service/backdrop.js index 6d8db873e9d..ea9e7b5da24 100644 --- a/js/angular/service/backdrop.js +++ b/js/angular/service/backdrop.js @@ -76,7 +76,7 @@ function($document) { el.removeClass('active'); setTimeout(function() { !backdropHolds && el.removeClass('visible'); - }, 100); + }, 400); } }