fix(backdrop): disable tap longer after backdrop close

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
This commit is contained in:
Adam Bradley
2014-08-05 11:01:33 -05:00
parent 06086ee9ae
commit 7faeeda099

View File

@@ -76,7 +76,7 @@ function($document) {
el.removeClass('active');
setTimeout(function() {
!backdropHolds && el.removeClass('visible');
}, 100);
}, 400);
}
}