diff --git a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js
index 04be7d37ff5..858742fa8db 100644
--- a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js
+++ b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js
@@ -328,17 +328,6 @@ export class AttachmentViewer extends Component {
this._rotate();
}
- /**
- * Called when clicking on embed video player. Stop propagation to prevent
- * closing the dialog.
- *
- * @private
- * @param {MouseEvent} ev
- */
- _onClickVideo(ev) {
- ev.stopPropagation();
- }
-
/**
* Called when clicking on zoom in icon.
*
diff --git a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml
index e2786c1411e..cecc2e4d398 100644
--- a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml
+++ b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml
@@ -56,7 +56,7 @@
-
diff --git a/addons/mail/static/src/models/attachment_viewer.js b/addons/mail/static/src/models/attachment_viewer.js
index 5ed2101536d..0e7b4928608 100644
--- a/addons/mail/static/src/models/attachment_viewer.js
+++ b/addons/mail/static/src/models/attachment_viewer.js
@@ -65,7 +65,7 @@ registerModel({
* Called when clicking on image. Stop propagation of event to prevent
* closing the dialog.
*
- * @param {MouseEvent} ev
+ * @param {MouseEvent} ev
*/
onClickImage(ev) {
if (this.isDragging) {
@@ -73,6 +73,15 @@ registerModel({
}
ev.stopPropagation();
},
+ /**
+ * Called when clicking on embed video player. Stop propagation to prevent
+ * closing the dialog.
+ *
+ * @param {MouseEvent} ev
+ */
+ onClickVideo(ev) {
+ ev.stopPropagation();
+ },
/**
* @private
* @returns {string}