From e7e0ea6b047deaaa39082cc74236f01cf76574ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 22 Nov 2022 14:18:26 +0100 Subject: [PATCH] MOBILE-3936 reminders: Fix workshop reminders and custom position --- .../workshop/components/index/addon-mod-workshop-index.html | 3 ++- .../components/set-reminder-menu/set-reminder-menu.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html index 4c59721e6..434e6f5a2 100644 --- a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html +++ b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html @@ -9,7 +9,8 @@ - + diff --git a/src/core/features/reminders/components/set-reminder-menu/set-reminder-menu.ts b/src/core/features/reminders/components/set-reminder-menu/set-reminder-menu.ts index 4fac9cdb3..070367293 100644 --- a/src/core/features/reminders/components/set-reminder-menu/set-reminder-menu.ts +++ b/src/core/features/reminders/components/set-reminder-menu/set-reminder-menu.ts @@ -152,6 +152,9 @@ export class CoreRemindersSetReminderMenuComponent implements OnInit { * @param ev Click event. */ async setCustom(ev: Event): Promise { + ev.stopPropagation(); + ev.preventDefault(); + const reminderTime = await CoreDomUtils.openPopover({ component: CoreRemindersSetReminderCustomComponent, componentProps: { @@ -159,7 +162,6 @@ export class CoreRemindersSetReminderMenuComponent implements OnInit { customUnits: this.customUnits, }, waitForDismissCompleted: true, // To be able to close parent popup. - event: ev, }); if (reminderTime === undefined) {