diff --git a/src/addons/mod/forum/components/index/index.ts b/src/addons/mod/forum/components/index/index.ts index 315b86c42..4562d9917 100644 --- a/src/addons/mod/forum/components/index/index.ts +++ b/src/addons/mod/forum/components/index/index.ts @@ -634,7 +634,7 @@ export class AddonModForumIndexComponent extends CoreCourseModuleMainActivityCom }, }); - modal.present(); + await modal.present(); const result = await modal.onDidDismiss(); @@ -668,7 +668,7 @@ export class AddonModForumIndexComponent extends CoreCourseModuleMainActivityCom event, }); - popover.present(); + await popover.present(); const result = await popover.onDidDismiss<{ action?: string; value: boolean }>(); diff --git a/src/addons/mod/forum/components/post/post.ts b/src/addons/mod/forum/components/post/post.ts index f08ae93e8..7a0405051 100644 --- a/src/addons/mod/forum/components/post/post.ts +++ b/src/addons/mod/forum/components/post/post.ts @@ -228,7 +228,7 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy, OnChanges event, }); - popover.present(); + await popover.present(); const result = await popover.onDidDismiss<{ action?: string }>(); @@ -265,7 +265,7 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy, OnChanges backdropDismiss: false, }); - modal.present(); + await modal.present(); const result = await modal.onDidDismiss(); const data = result.data; diff --git a/src/addons/mod/glossary/components/index/index.ts b/src/addons/mod/glossary/components/index/index.ts index c442b74e0..2a83c4b1d 100644 --- a/src/addons/mod/glossary/components/index/index.ts +++ b/src/addons/mod/glossary/components/index/index.ts @@ -414,7 +414,7 @@ export class AddonModGlossaryIndexComponent extends CoreCourseModuleMainActivity event, }); - popover.present(); + await popover.present(); const result = await popover.onDidDismiss(); diff --git a/src/core/services/utils/dom.ts b/src/core/services/utils/dom.ts index fe1872f05..34c897a7d 100644 --- a/src/core/services/utils/dom.ts +++ b/src/core/services/utils/dom.ts @@ -1450,7 +1450,7 @@ export class CoreDomUtilsProvider { const loading = new CoreIonLoadingElement(loadingElement); - loading.present(); + await loading.present(); return loading; }