diff --git a/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.html b/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.html
index f14e45d80..862f4cf47 100644
--- a/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.html
+++ b/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.html
@@ -11,6 +11,6 @@
diff --git a/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.ts b/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.ts
index 01b24e5de..08f2369bb 100644
--- a/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.ts
+++ b/src/addon/mod/assign/pages/edit-feedback-modal/edit-feedback-modal.ts
@@ -72,8 +72,13 @@ export class AddonModAssignEditFeedbackModalPage {
/**
* Done editing.
+ *
+ * @param {Event} e Click event.
*/
- done(): void {
+ done(e: Event): void {
+ e.preventDefault();
+ e.stopPropagation();
+
// Close the modal, sending the input data.
this.forceLeave = true;
this.closeModal(this.getInputData());
diff --git a/src/addon/mod/data/pages/edit/edit.html b/src/addon/mod/data/pages/edit/edit.html
index 7f34748e7..8dc29855f 100644
--- a/src/addon/mod/data/pages/edit/edit.html
+++ b/src/addon/mod/data/pages/edit/edit.html
@@ -23,7 +23,7 @@
{{ cssTemplate }}
-
diff --git a/src/addon/mod/data/pages/edit/edit.ts b/src/addon/mod/data/pages/edit/edit.ts
index c311a7137..51de16b22 100644
--- a/src/addon/mod/data/pages/edit/edit.ts
+++ b/src/addon/mod/data/pages/edit/edit.ts
@@ -185,9 +185,13 @@ export class AddonModDataEditPage {
/**
* Saves data.
*
+ * @param {Event} e Event.
* @return {Promise} Resolved when done.
*/
- save(): Promise {
+ save(e: Event): Promise {
+ e.preventDefault();
+ e.stopPropagation();
+
const inputData = this.editForm.value;
return this.dataHelper.hasEditDataChanged(inputData, this.fieldsArray, this.data.id,
diff --git a/src/addon/mod/data/pages/search/search.html b/src/addon/mod/data/pages/search/search.html
index 4af747ec6..35b90865d 100644
--- a/src/addon/mod/data/pages/search/search.html
+++ b/src/addon/mod/data/pages/search/search.html
@@ -13,7 +13,7 @@
{{ 'addon.mod_data.search' | translate}}
{{ 'addon.mod_data.advancedsearch' | translate }}
-