From cca878cb3c0e583ad39de2707a05c8bcc7d8d387 Mon Sep 17 00:00:00 2001 From: mhartington Date: Thu, 21 Dec 2017 13:10:05 -0500 Subject: [PATCH] chore(): overlay refactors --- .../components/action-sheet/action-sheet.tsx | 8 +- .../action-sheet/test/basic/index.html | 1 + packages/core/src/components/alert/alert.tsx | 9 +-- .../components/alert/test/basic/index.html | 2 + .../core/src/components/loading/loading.tsx | 13 +++- packages/core/src/components/modal/modal.tsx | 70 +++++++++-------- .../components/modal/test/basic/index.html | 2 + .../core/src/components/popover/popover.tsx | 77 +++++++++---------- .../components/popover/test/basic/index.html | 4 + .../components/toast/test/basic/index.html | 3 + packages/core/src/components/toast/toast.tsx | 8 +- 11 files changed, 106 insertions(+), 91 deletions(-) diff --git a/packages/core/src/components/action-sheet/action-sheet.tsx b/packages/core/src/components/action-sheet/action-sheet.tsx index 90cda9de03..318e76a612 100644 --- a/packages/core/src/components/action-sheet/action-sheet.tsx +++ b/packages/core/src/components/action-sheet/action-sheet.tsx @@ -175,14 +175,14 @@ export class ActionSheet { return playAnimationAsync(animation); }).then((animation) => { animation.destroy(); - return domControllerAsync(this.dom.write, () => { - this.el.parentNode.removeChild(this.el); - }); - }).then(() => { this.ionActionSheetDidDismiss.emit({ data, role }); + }).then(() => { + return domControllerAsync(this.dom.write, () => { + this.el.parentNode.removeChild(this.el); + }); }); } diff --git a/packages/core/src/components/action-sheet/test/basic/index.html b/packages/core/src/components/action-sheet/test/basic/index.html index a28623c23d..5fb2fb566e 100644 --- a/packages/core/src/components/action-sheet/test/basic/index.html +++ b/packages/core/src/components/action-sheet/test/basic/index.html @@ -36,6 +36,7 @@