mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(tslint): disable 'no-floating-promises'
This commit is contained in:
@ -25,7 +25,6 @@ export function createOverlay<T extends HTMLIonOverlayElement>(element: T, opts:
|
||||
|
||||
doc.body.addEventListener('keyup', ev => {
|
||||
if (ev.key === 'Escape') {
|
||||
// tslint:disable-next-line:no-floating-promises
|
||||
closeTopOverlay(doc);
|
||||
}
|
||||
});
|
||||
@ -48,7 +47,6 @@ export function connectListeners(doc: Document) {
|
||||
if (ev.key === 'Escape') {
|
||||
const lastOverlay = getOverlay(doc);
|
||||
if (lastOverlay && lastOverlay.backdropDismiss) {
|
||||
// tslint:disable-next-line:no-floating-promises
|
||||
lastOverlay.dismiss('backdrop');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user