mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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:
2
js/angular/service/backdrop.js
vendored
2
js/angular/service/backdrop.js
vendored
@@ -76,7 +76,7 @@ function($document) {
|
||||
el.removeClass('active');
|
||||
setTimeout(function() {
|
||||
!backdropHolds && el.removeClass('visible');
|
||||
}, 100);
|
||||
}, 400);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user