From d2d1c019714719baca9b69141f9decf690182fb6 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Wed, 1 Feb 2023 14:30:25 +0000 Subject: [PATCH] [FIX] web_editor: remove double click popup from links It is wrong in 15.0 since double clicking on the link does nothing anymore, as edition of the link is done via the popover. Having both tooltips at the same time created a race condition that ended up inserting the second tooltip in the DOM, where it obviously couldn't function properly anymore. opw-3147108 closes odoo/odoo#112035 X-original-commit: 35cc6049a8bcc3c80cb4eb2468f85d09734814b8 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index e44306e5000..a7bf2883759 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -1928,8 +1928,7 @@ const Wysiwyg = Widget.extend({ this._updateMediaJustifyButton(); this._updateFaResizeButtons(); } - const link = getInSelection(this.odooEditor.document, this.customizableLinksSelector); - if (isInMedia || (link && link.isContentEditable)) { + if (isInMedia) { // Handle the media/link's tooltip. this.showTooltip = true; this.tooltipTimeouts.push(setTimeout(() => {